Loading config/merged/etat.config.php +0 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,6 @@ namespace UnicaenEvenement; use Autoform\View\Helper\ChampAsValidationHelper; use UnicaenEvenement\Controller\EtatController; use UnicaenEvenement\Controller\EtatControllerFactory; use UnicaenEvenement\Form\Etat\EtatForm; Loading src/UnicaenEvenement/Entity/Db/Type.php +5 −1 Original line number Diff line number Diff line Loading @@ -7,9 +7,13 @@ class Type { const COLLECTION = 'collection'; // Services const RAPPEL_ENTRETIEN_PROFESSIONNEL = 'rappel_entretienpro'; const SYNCHRO_OCTOPUS = 'synchro_octopus'; // ENTRETIEN PROFESSIONNEL const RAPPEL_CAMPAGNE_AVANCEMENT = 'rappel_campagne'; const RAPPEL_ENTRETIEN_PROFESSIONNEL = 'rappel_entretienpro'; // FORMATION const NOTIFICATION_FORMATION_OUVERTE = 'notification_formation_ouverte'; const RAPPEL_FORMATION_AGENT_AVANT = 'rappel_formation_agent_avant'; Loading src/UnicaenEvenement/Service/Evenement/EvenementService.php +3 −1 Original line number Diff line number Diff line Loading @@ -144,7 +144,9 @@ class EvenementService extends CommonService implements EvenementServiceInterfac $dateCreation = new DateTime(); $json = json_encode($parametres); if ($etat === null) { $etat = $this->getEtatEvenementService()->findByCode(Etat::EN_ATTENTE); } if ($etat === null) { $etat = $this->getEtatEvenementService()->findByCode(Etat::EN_ATTENTE); } $evenement = new Evenement(); $evenement Loading src/UnicaenEvenement/Service/Journal/JournalService.php +1 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ class JournalService { public function isRunning() : bool { $last = $this->getDernierJournal(); return ($last->getEtat()->getCode() === Etat::EN_COURS); return ($last !== null AND $last->getEtat()->getCode() === Etat::EN_COURS); } } No newline at end of file Loading
config/merged/etat.config.php +0 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,6 @@ namespace UnicaenEvenement; use Autoform\View\Helper\ChampAsValidationHelper; use UnicaenEvenement\Controller\EtatController; use UnicaenEvenement\Controller\EtatControllerFactory; use UnicaenEvenement\Form\Etat\EtatForm; Loading
src/UnicaenEvenement/Entity/Db/Type.php +5 −1 Original line number Diff line number Diff line Loading @@ -7,9 +7,13 @@ class Type { const COLLECTION = 'collection'; // Services const RAPPEL_ENTRETIEN_PROFESSIONNEL = 'rappel_entretienpro'; const SYNCHRO_OCTOPUS = 'synchro_octopus'; // ENTRETIEN PROFESSIONNEL const RAPPEL_CAMPAGNE_AVANCEMENT = 'rappel_campagne'; const RAPPEL_ENTRETIEN_PROFESSIONNEL = 'rappel_entretienpro'; // FORMATION const NOTIFICATION_FORMATION_OUVERTE = 'notification_formation_ouverte'; const RAPPEL_FORMATION_AGENT_AVANT = 'rappel_formation_agent_avant'; Loading
src/UnicaenEvenement/Service/Evenement/EvenementService.php +3 −1 Original line number Diff line number Diff line Loading @@ -144,7 +144,9 @@ class EvenementService extends CommonService implements EvenementServiceInterfac $dateCreation = new DateTime(); $json = json_encode($parametres); if ($etat === null) { $etat = $this->getEtatEvenementService()->findByCode(Etat::EN_ATTENTE); } if ($etat === null) { $etat = $this->getEtatEvenementService()->findByCode(Etat::EN_ATTENTE); } $evenement = new Evenement(); $evenement Loading
src/UnicaenEvenement/Service/Journal/JournalService.php +1 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ class JournalService { public function isRunning() : bool { $last = $this->getDernierJournal(); return ($last->getEtat()->getCode() === Etat::EN_COURS); return ($last !== null AND $last->getEtat()->getCode() === Etat::EN_COURS); } } No newline at end of file