Skip to content
Snippets Groups Projects
Commit d08aea1f authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

module/Agent/src/Entity/Db/Agent.php

parent 781a1783
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,10 @@ class Agent implements
if ($structure === $niveau2) {
return $structure->getLibelleLong();
}
return $niveau2->getLibelleLong() . " > " . $structure->getLibelleLong();
$libelle = '';
if ($niveau2) $libelle .= $structure->getLibelleLong(). " > ";
$libelle.= $structure->getLibelleLong();
return $libelle;
}
/** @return AgentEchelon[] */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment