Loading CHANGELOG.md +1 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ Objectif : Plafonds personnalisables * Prise en compte des accents dans les recherches (#40917) * Correction sur la complétude des données personnelles lorsque la case 'INSEE provisoire' est cochée (#41141). * Les modifications de motifs de non paiement fonctionnement de nouveau en mode calendaire (#40037) * L'autovalidation fonctionne maintenant pour le référentiel (#41149) ## Notes de mise à jour Loading module/Application/src/Application/Entity/Db/VolumeHoraireReferentiel.php +1 −1 Original line number Diff line number Diff line Loading @@ -326,7 +326,7 @@ class VolumeHoraireReferentiel implements HistoriqueAwareInterface, ImportAwareI * * @return VolumeHoraire */ public function setAutoValidation(bool $autoValidation): VolumeHoraire public function setAutoValidation(bool $autoValidation): self { $this->autoValidation = $autoValidation; Loading module/Application/src/Application/Entity/VolumeHoraireReferentielListe.php +9 −11 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ use Application\Entity\Db\Validation; use Application\Entity\Db\VolumeHoraireReferentiel; use Application\Hydrator\VolumeHoraireReferentiel\ListeFilterHydrator; use Application\Service\Traits\SourceServiceAwareTrait; use Application\Service\Traits\VolumeHoraireReferentielServiceAwareTrait; use LogicException; use RuntimeException; use UnicaenImport\Entity\Db\Source; Loading @@ -34,7 +35,7 @@ class VolumeHoraireReferentielListe self::FILTRE_NEW, ]; CONST FILTRES_LIST = [ const FILTRES_LIST = [ self::FILTRE_ETAT_VOLUME_HORAIRE => [ 'class' => EtatVolumeHoraire::class, 'accessor' => 'EtatVolumeHoraire', Loading Loading @@ -78,6 +79,7 @@ class VolumeHoraireReferentielListe ]; use SourceServiceAwareTrait; use VolumeHoraireReferentielServiceAwareTrait; /** * @var ServiceReferentiel|boolean Loading Loading @@ -482,9 +484,6 @@ class VolumeHoraireReferentielListe /** * @param VolumeHoraireReferentiel $vh * @param array $filtres Loading Loading @@ -556,6 +555,7 @@ class VolumeHoraireReferentielListe $vhlph = new ListeFilterHydrator(); $volumeHoraireListe = new VolumeHoraireReferentielListe($this->getService()); $vhlph->hydrate($vhlph->extract($this), $volumeHoraireListe); //$volumeHoraireListe->__debug = $this->__debug; return $volumeHoraireListe; Loading Loading @@ -683,7 +683,6 @@ class VolumeHoraireReferentielListe public function isVolumeHoraireModifiable(VolumeHoraireReferentiel $volumeHoraire) { return !( Loading Loading @@ -850,7 +849,7 @@ class VolumeHoraireReferentielListe } if (0 != $newHeures) { $volumeHoraire = new VolumeHoraireReferentiel(); $volumeHoraire = $this->getServiceVolumeHoraireReferentiel()->newEntity(); $volumeHoraire->setServiceReferentiel($this->getService()); $volumeHoraire->setTypeVolumeHoraire($this->getTypeVolumeHoraire()); if ($this->getHoraireDebut() instanceof \DateTime) { Loading @@ -868,7 +867,6 @@ class VolumeHoraireReferentielListe /** * Affecte un certain nombre d'heures à la liste * Loading Loading @@ -910,7 +908,7 @@ class VolumeHoraireReferentielListe return $this; } // Pas de modifications à prévoir $saisieHeures = $newHeures; $volumeHoraire = new VolumeHoraireReferentiel(); $volumeHoraire = $this->getServiceVolumeHoraireReferentiel()->newEntity(); $volumeHoraire->setServiceReferentiel($vhl->getService()); $volumeHoraire->setTypeVolumeHoraire($vhl->getTypeVolumeHoraire()); $volumeHoraire->setHoraireDebut($vhl->getHoraireDebut()); Loading module/Application/src/Application/Service/VolumeHoraireReferentielService.php +4 −5 Original line number Diff line number Diff line Loading @@ -57,6 +57,9 @@ class VolumeHoraireReferentielService extends AbstractEntityService $entity = parent::newEntity(); $entity->setTypeVolumeHoraire($this->getServiceTypeVolumeHoraire()->getPrevu()); $canAutoValidate = $this->getAuthorize()->isAllowed($entity, Privileges::REFERENTIEL_AUTOVALIDATION); if ($canAutoValidate) $entity->setAutoValidation(true); return $entity; } Loading @@ -78,10 +81,6 @@ class VolumeHoraireReferentielService extends AbstractEntityService if (!$entity->getSourceCode()) { $entity->setSourceCode(uniqid('ose-')); } if (!$entity->getId()) { $canAutoValidate = $this->getAuthorize()->isAllowed($entity, Privileges::REFERENTIEL_AUTOVALIDATION); if ($canAutoValidate) $entity->setAutoValidation(true); } return parent::save($entity); } Loading Loading
CHANGELOG.md +1 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ Objectif : Plafonds personnalisables * Prise en compte des accents dans les recherches (#40917) * Correction sur la complétude des données personnelles lorsque la case 'INSEE provisoire' est cochée (#41141). * Les modifications de motifs de non paiement fonctionnement de nouveau en mode calendaire (#40037) * L'autovalidation fonctionne maintenant pour le référentiel (#41149) ## Notes de mise à jour Loading
module/Application/src/Application/Entity/Db/VolumeHoraireReferentiel.php +1 −1 Original line number Diff line number Diff line Loading @@ -326,7 +326,7 @@ class VolumeHoraireReferentiel implements HistoriqueAwareInterface, ImportAwareI * * @return VolumeHoraire */ public function setAutoValidation(bool $autoValidation): VolumeHoraire public function setAutoValidation(bool $autoValidation): self { $this->autoValidation = $autoValidation; Loading
module/Application/src/Application/Entity/VolumeHoraireReferentielListe.php +9 −11 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ use Application\Entity\Db\Validation; use Application\Entity\Db\VolumeHoraireReferentiel; use Application\Hydrator\VolumeHoraireReferentiel\ListeFilterHydrator; use Application\Service\Traits\SourceServiceAwareTrait; use Application\Service\Traits\VolumeHoraireReferentielServiceAwareTrait; use LogicException; use RuntimeException; use UnicaenImport\Entity\Db\Source; Loading @@ -34,7 +35,7 @@ class VolumeHoraireReferentielListe self::FILTRE_NEW, ]; CONST FILTRES_LIST = [ const FILTRES_LIST = [ self::FILTRE_ETAT_VOLUME_HORAIRE => [ 'class' => EtatVolumeHoraire::class, 'accessor' => 'EtatVolumeHoraire', Loading Loading @@ -78,6 +79,7 @@ class VolumeHoraireReferentielListe ]; use SourceServiceAwareTrait; use VolumeHoraireReferentielServiceAwareTrait; /** * @var ServiceReferentiel|boolean Loading Loading @@ -482,9 +484,6 @@ class VolumeHoraireReferentielListe /** * @param VolumeHoraireReferentiel $vh * @param array $filtres Loading Loading @@ -556,6 +555,7 @@ class VolumeHoraireReferentielListe $vhlph = new ListeFilterHydrator(); $volumeHoraireListe = new VolumeHoraireReferentielListe($this->getService()); $vhlph->hydrate($vhlph->extract($this), $volumeHoraireListe); //$volumeHoraireListe->__debug = $this->__debug; return $volumeHoraireListe; Loading Loading @@ -683,7 +683,6 @@ class VolumeHoraireReferentielListe public function isVolumeHoraireModifiable(VolumeHoraireReferentiel $volumeHoraire) { return !( Loading Loading @@ -850,7 +849,7 @@ class VolumeHoraireReferentielListe } if (0 != $newHeures) { $volumeHoraire = new VolumeHoraireReferentiel(); $volumeHoraire = $this->getServiceVolumeHoraireReferentiel()->newEntity(); $volumeHoraire->setServiceReferentiel($this->getService()); $volumeHoraire->setTypeVolumeHoraire($this->getTypeVolumeHoraire()); if ($this->getHoraireDebut() instanceof \DateTime) { Loading @@ -868,7 +867,6 @@ class VolumeHoraireReferentielListe /** * Affecte un certain nombre d'heures à la liste * Loading Loading @@ -910,7 +908,7 @@ class VolumeHoraireReferentielListe return $this; } // Pas de modifications à prévoir $saisieHeures = $newHeures; $volumeHoraire = new VolumeHoraireReferentiel(); $volumeHoraire = $this->getServiceVolumeHoraireReferentiel()->newEntity(); $volumeHoraire->setServiceReferentiel($vhl->getService()); $volumeHoraire->setTypeVolumeHoraire($vhl->getTypeVolumeHoraire()); $volumeHoraire->setHoraireDebut($vhl->getHoraireDebut()); Loading
module/Application/src/Application/Service/VolumeHoraireReferentielService.php +4 −5 Original line number Diff line number Diff line Loading @@ -57,6 +57,9 @@ class VolumeHoraireReferentielService extends AbstractEntityService $entity = parent::newEntity(); $entity->setTypeVolumeHoraire($this->getServiceTypeVolumeHoraire()->getPrevu()); $canAutoValidate = $this->getAuthorize()->isAllowed($entity, Privileges::REFERENTIEL_AUTOVALIDATION); if ($canAutoValidate) $entity->setAutoValidation(true); return $entity; } Loading @@ -78,10 +81,6 @@ class VolumeHoraireReferentielService extends AbstractEntityService if (!$entity->getSourceCode()) { $entity->setSourceCode(uniqid('ose-')); } if (!$entity->getId()) { $canAutoValidate = $this->getAuthorize()->isAllowed($entity, Privileges::REFERENTIEL_AUTOVALIDATION); if ($canAutoValidate) $entity->setAutoValidation(true); } return parent::save($entity); } Loading