Skip to content
Snippets Groups Projects
Commit d7dc41f2 authored by lecluse's avatar lecluse
Browse files

Correction de bug

parent 50e82eee
Branches
Tags
No related merge requests found
...@@ -111,7 +111,7 @@ class IntervenantViewHelper extends AbstractHtmlElement ...@@ -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>'; 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>'; $out = '<a href="' . $pourl . '" data-po-href="' . $pourl . '" class="ajax-modal">' . $intervenant . '</a>';
return $out; return $out;
......
...@@ -123,19 +123,14 @@ class Ligne extends AbstractHtmlElement ...@@ -123,19 +123,14 @@ class Ligne extends AbstractHtmlElement
protected function renderIntervenant($intervenant) protected function renderIntervenant($intervenant)
{ {
$pourl = $this->getView()->url('intervenant/default', ['action' => 'apercevoir', 'intervenant' => $intervenant->getSourceCode()]); return $this->getView()->intervenant($intervenant)->renderLink();
$out = '<a href="'.$pourl.'" data-po-href="'.$pourl.'" class="ajax-modal services">'.$intervenant.'</a>';
return $out;
} }
protected function renderStructure($structure) protected function renderStructure($structure)
{ {
if (! $structure) return ''; if (! $structure) return '';
$url = $this->getView()->url('structure/default', ['action' => 'voir', 'id' => $structure->getId()]); return $this->getView()->structure($structure)->renderLink();
$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;
} }
protected function renderFonction($fonction) protected function renderFonction($fonction)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment