diff --git a/module/Application/src/Application/View/Helper/Intervenant/IntervenantViewHelper.php b/module/Application/src/Application/View/Helper/Intervenant/IntervenantViewHelper.php index 6d748407d093de78cc9658fa6bb891be8f50b3b2..345e382f541f533cdeb9308c5dbb8fa5da6c2de3 100644 --- a/module/Application/src/Application/View/Helper/Intervenant/IntervenantViewHelper.php +++ b/module/Application/src/Application/View/Helper/Intervenant/IntervenantViewHelper.php @@ -111,7 +111,7 @@ class IntervenantViewHelper extends AbstractHtmlElement return '<span class="bg-danger"><abbr title="Cet intervenant a été supprimé de OSE">' . $intervenant . '</abbr></span>'; } - $pourl = $this->getView()->url('intervenant/default', ['action' => 'apercevoir', 'intervenant' => $intervenant->getSourceCode()]); + $pourl = $this->getView()->url('intervenant/voir', ['intervenant' => $intervenant->getSourceCode()]); $out = '<a href="' . $pourl . '" data-po-href="' . $pourl . '" class="ajax-modal">' . $intervenant . '</a>'; return $out; diff --git a/module/Application/src/Application/View/Helper/ServiceReferentiel/Ligne.php b/module/Application/src/Application/View/Helper/ServiceReferentiel/Ligne.php index 46657be782c2e811e9fa0bc6d5e49dc37da3218e..9074edda25ed1d6ed9f503a36a181548a905f454 100644 --- a/module/Application/src/Application/View/Helper/ServiceReferentiel/Ligne.php +++ b/module/Application/src/Application/View/Helper/ServiceReferentiel/Ligne.php @@ -123,19 +123,14 @@ class Ligne extends AbstractHtmlElement protected function renderIntervenant($intervenant) { - $pourl = $this->getView()->url('intervenant/default', ['action' => 'apercevoir', 'intervenant' => $intervenant->getSourceCode()]); - $out = '<a href="'.$pourl.'" data-po-href="'.$pourl.'" class="ajax-modal services">'.$intervenant.'</a>'; - return $out; + return $this->getView()->intervenant($intervenant)->renderLink(); } protected function renderStructure($structure) { if (! $structure) return ''; - $url = $this->getView()->url('structure/default', ['action' => 'voir', 'id' => $structure->getId()]); - $pourl = $this->getView()->url('structure/default', ['action' => 'apercevoir', 'id' => $structure->getId()]); - $out = '<a href="'.$url.'" data-po-href="'.$pourl.'" class="ajax-modal">'.$structure.'</a>'; - return $out; + return $this->getView()->structure($structure)->renderLink(); } protected function renderFonction($fonction)