Loading module/Application/src/Application/Entity/Db/Acteur.php +1 −3 Original line number Diff line number Diff line Loading @@ -27,8 +27,6 @@ class Acteur implements HistoriqueAwareInterface, ResourceInterface, IndividuAwa use HistoriqueAwareTrait; use SourceAwareTrait; const PRESIDENT_DU_JURY = "Président du jury"; /** * @var integer */ Loading Loading @@ -143,7 +141,7 @@ class Acteur implements HistoriqueAwareInterface, ResourceInterface, IndividuAwa */ public function estPresidentJury() { return ($this->getRole()->getCode() === Role::CODE_PRESIDENT_JURY || $this->getLibelleRoleComplement() === Role::LIBELLE_PRESIDENT); return ($this->getRole()->getCode() === Role::CODE_PRESIDENT_JURY); } /** Loading module/Application/src/Application/Entity/Db/These.php +2 −2 Original line number Diff line number Diff line Loading @@ -1459,7 +1459,7 @@ class These implements HistoriqueAwareInterface, ResourceInterface /** @var Acteur $acteur */ foreach ($acteurs as $acteur) { if ($acteur->getLibelleRoleComplement() === 'Président du jury') { if ($acteur->getRole()->getCode() === Role::CODE_PRESIDENT_JURY) { $email = $acteur->getIndividu()->getEmail(); $name = (string)$acteur->getIndividu(); Loading Loading @@ -1712,7 +1712,7 @@ class These implements HistoriqueAwareInterface, ResourceInterface { /** @var Acteur $acteur */ foreach ($this->getActeurs() as $acteur) { if ($acteur->estNonHistorise() AND $acteur->getLibelleRoleComplement() === Acteur::PRESIDENT_DU_JURY) { if ($acteur->estNonHistorise() AND $acteur->getRole()->getCode() === Role::CODE_PRESIDENT_JURY) { return $acteur; } } Loading Loading
module/Application/src/Application/Entity/Db/Acteur.php +1 −3 Original line number Diff line number Diff line Loading @@ -27,8 +27,6 @@ class Acteur implements HistoriqueAwareInterface, ResourceInterface, IndividuAwa use HistoriqueAwareTrait; use SourceAwareTrait; const PRESIDENT_DU_JURY = "Président du jury"; /** * @var integer */ Loading Loading @@ -143,7 +141,7 @@ class Acteur implements HistoriqueAwareInterface, ResourceInterface, IndividuAwa */ public function estPresidentJury() { return ($this->getRole()->getCode() === Role::CODE_PRESIDENT_JURY || $this->getLibelleRoleComplement() === Role::LIBELLE_PRESIDENT); return ($this->getRole()->getCode() === Role::CODE_PRESIDENT_JURY); } /** Loading
module/Application/src/Application/Entity/Db/These.php +2 −2 Original line number Diff line number Diff line Loading @@ -1459,7 +1459,7 @@ class These implements HistoriqueAwareInterface, ResourceInterface /** @var Acteur $acteur */ foreach ($acteurs as $acteur) { if ($acteur->getLibelleRoleComplement() === 'Président du jury') { if ($acteur->getRole()->getCode() === Role::CODE_PRESIDENT_JURY) { $email = $acteur->getIndividu()->getEmail(); $name = (string)$acteur->getIndividu(); Loading Loading @@ -1712,7 +1712,7 @@ class These implements HistoriqueAwareInterface, ResourceInterface { /** @var Acteur $acteur */ foreach ($this->getActeurs() as $acteur) { if ($acteur->estNonHistorise() AND $acteur->getLibelleRoleComplement() === Acteur::PRESIDENT_DU_JURY) { if ($acteur->estNonHistorise() AND $acteur->getRole()->getCode() === Role::CODE_PRESIDENT_JURY) { return $acteur; } } Loading