Loading module/HDR/src/HDR/Rule/HDREtatRule.php +3 −3 Original line number Diff line number Diff line Loading @@ -63,10 +63,10 @@ class HDREtatRule */ public function ajusterEtatSelonDates(HDR $hdr): void { if ($hdr->getCurrentProposition()->getDate() !== null && $hdr->getResultat()) { if ($hdr->getCurrentProposition()?->getDate() !== null && $hdr->getResultat()) { $this->appliquerChangementEtat($hdr, HDR::ETAT_SOUTENUE); return; }else if($hdr->getCurrentProposition()->getDate() !== null && $hdr->getResultat() === null){ }else if($hdr->getCurrentProposition()?->getDate() !== null && $hdr->getResultat() === null){ $this->appliquerChangementEtat($hdr, HDR::ETAT_SOUTENANCE_PROGRAMMEE); } Loading @@ -77,7 +77,7 @@ class HDREtatRule // Aucune date renseignée -> retour à EN_COURS (si autorisé) if ($hdr->getEtatHDR() !== HDR::ETAT_EN_COURS) { if($hdr->getCurrentProposition()->getDate() !== null){ if($hdr->getCurrentProposition()?->getDate() !== null){ $this->appliquerChangementEtat($hdr, HDR::ETAT_SOUTENANCE_PROGRAMMEE); }else{ $this->appliquerChangementEtat($hdr, HDR::ETAT_EN_COURS); Loading Loading
module/HDR/src/HDR/Rule/HDREtatRule.php +3 −3 Original line number Diff line number Diff line Loading @@ -63,10 +63,10 @@ class HDREtatRule */ public function ajusterEtatSelonDates(HDR $hdr): void { if ($hdr->getCurrentProposition()->getDate() !== null && $hdr->getResultat()) { if ($hdr->getCurrentProposition()?->getDate() !== null && $hdr->getResultat()) { $this->appliquerChangementEtat($hdr, HDR::ETAT_SOUTENUE); return; }else if($hdr->getCurrentProposition()->getDate() !== null && $hdr->getResultat() === null){ }else if($hdr->getCurrentProposition()?->getDate() !== null && $hdr->getResultat() === null){ $this->appliquerChangementEtat($hdr, HDR::ETAT_SOUTENANCE_PROGRAMMEE); } Loading @@ -77,7 +77,7 @@ class HDREtatRule // Aucune date renseignée -> retour à EN_COURS (si autorisé) if ($hdr->getEtatHDR() !== HDR::ETAT_EN_COURS) { if($hdr->getCurrentProposition()->getDate() !== null){ if($hdr->getCurrentProposition()?->getDate() !== null){ $this->appliquerChangementEtat($hdr, HDR::ETAT_SOUTENANCE_PROGRAMMEE); }else{ $this->appliquerChangementEtat($hdr, HDR::ETAT_EN_COURS); Loading