Commit 02c96808 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

up

parent b3bb8d16
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@

namespace UnicaenEvenement;

use Autoform\View\Helper\ChampAsValidationHelper;
use UnicaenEvenement\Controller\EtatController;
use UnicaenEvenement\Controller\EtatControllerFactory;
use UnicaenEvenement\Form\Etat\EtatForm;
+5 −1
Original line number Diff line number Diff line
@@ -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';
+3 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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