From d7dc41f2aa5a8cd35f89ef0954bc7a4d49c6c768 Mon Sep 17 00:00:00 2001 From: lecluse <lecluse@d57fa8bc-6af1-4de9-8b7d-78e900e231e7> Date: Fri, 18 Dec 2015 15:51:25 +0000 Subject: [PATCH] Correction de bug --- .../View/Helper/Intervenant/IntervenantViewHelper.php | 2 +- .../Application/View/Helper/ServiceReferentiel/Ligne.php | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/module/Application/src/Application/View/Helper/Intervenant/IntervenantViewHelper.php b/module/Application/src/Application/View/Helper/Intervenant/IntervenantViewHelper.php index 6d748407d0..345e382f54 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 46657be782..9074edda25 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) -- GitLab