Loading module/Oscar/src/Oscar/View/Helpers/Links.php +14 −10 Original line number Diff line number Diff line Loading @@ -248,6 +248,7 @@ class Links extends AbstractHtmlElement implements ServiceLocatorAwareInterface * @param OrganizationPerson $affectation */ public function affectationPerson( $affectation ){ try { if( !$affectation->getPerson() || !$affectation->getOrganization() ){ return '<span class="invalid-data">Données invalide</span>'; } Loading @@ -259,6 +260,9 @@ class Links extends AbstractHtmlElement implements ServiceLocatorAwareInterface $css, $this->organization($affectation->getOrganization()), $affectation->getRole()); } catch (\Exception $e) { $this->getServiceLocator()->get('Logger')->error("Echec rendu d'affectation d'une personne : " . $e->getMessage()); } } /** Loading module/Oscar/view/oscar/person/item-list.phtml +1 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ <?php if( count($person->getOrganizations()) ): ?> <?php /** @var \Oscar\Entity\OrganizationPerson $affectation */ foreach( $person->getOrganizations() as $affectation ): ?> <?= $this->link()->affectationPerson($affectation) ?> <?php echo $this->link()->affectationPerson($affectation); ?> <?php endforeach; ?> <?php endif; ?> <?php if( $person->getLdapMemberOf() != null ): ?> Loading Loading
module/Oscar/src/Oscar/View/Helpers/Links.php +14 −10 Original line number Diff line number Diff line Loading @@ -248,6 +248,7 @@ class Links extends AbstractHtmlElement implements ServiceLocatorAwareInterface * @param OrganizationPerson $affectation */ public function affectationPerson( $affectation ){ try { if( !$affectation->getPerson() || !$affectation->getOrganization() ){ return '<span class="invalid-data">Données invalide</span>'; } Loading @@ -259,6 +260,9 @@ class Links extends AbstractHtmlElement implements ServiceLocatorAwareInterface $css, $this->organization($affectation->getOrganization()), $affectation->getRole()); } catch (\Exception $e) { $this->getServiceLocator()->get('Logger')->error("Echec rendu d'affectation d'une personne : " . $e->getMessage()); } } /** Loading
module/Oscar/view/oscar/person/item-list.phtml +1 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ <?php if( count($person->getOrganizations()) ): ?> <?php /** @var \Oscar\Entity\OrganizationPerson $affectation */ foreach( $person->getOrganizations() as $affectation ): ?> <?= $this->link()->affectationPerson($affectation) ?> <?php echo $this->link()->affectationPerson($affectation); ?> <?php endforeach; ?> <?php endif; ?> <?php if( $person->getLdapMemberOf() != null ): ?> Loading