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

Correction de bug

parent 50e82eee
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment