Loading module/Structure/src/Structure/Controller/StructureController.php +2 Changes for module/Structure/src/Structure/Controller/StructureController.php: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -202,6 +202,7 @@ class StructureController extends AbstractActionController { /** @var AjouterResponsableForm $form */ $form = $this->getAjouterResponsableForm(); $form->get('responsable')->setAutocompleteSource($this->url()->fromRoute('agent/rechercher-large', [], [], true)); $form->setAttribute('action', $this->url()->fromRoute('structure/ajouter-responsable', ['structure' => $structure->getId()])); $form->bind($responsable); Loading Loading @@ -250,6 +251,7 @@ class StructureController extends AbstractActionController { /** @var AjouterGestionnaireForm $form */ $form = $this->getAjouterGestionnaireForm(); $form->get('gestionnaire')->setAutocompleteSource($this->url()->fromRoute('agent/rechercher-large', [], [], true)); $form->setAttribute('action', $this->url()->fromRoute('structure/ajouter-gestionnaire', ['structure' => $structure->getId()])); $form->bind($gestionnaire); Loading module/Structure/src/Structure/Form/AjouterGestionnaire/AjouterGestionnaireHydrator.php +1 −1 Changes for module/Structure/src/Structure/Form/AjouterGestionnaire/AjouterGestionnaireHydrator.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ class AjouterGestionnaireHydrator implements HydratorInterface { */ public function hydrate(array $data, $object) { $agent = (isset($data['gestionnaire']) AND isset($data['gestionnaire']['id']) AND trim($data['gestionnaire']['id']) !== '')?$this->getAgentService()->getAgent($data['gestionnaire']['id']):null; $agent = (isset($data['gestionnaire']) AND isset($data['gestionnaire']['id']) AND trim($data['gestionnaire']['id']) !== '')?$this->getAgentService()->getAgent($data['gestionnaire']['id'], true):null; $dataDebut = (isset($data['HasPeriode']) AND isset($data['HasPeriode']['date_debut']) AND trim($data['HasPeriode']['date_debut']) !== '')?DateTime::createFromFormat(HasPeriodeFieldset::format, $data['HasPeriode']['date_debut']):null; $dateFin = (isset($data['HasPeriode']) AND isset($data['HasPeriode']['date_fin']) AND trim($data['HasPeriode']['date_fin']) !== '')?DateTime::createFromFormat(HasPeriodeFieldset::format, $data['HasPeriode']['date_fin']):null; Loading module/Structure/src/Structure/Form/AjouterResponsable/AjouterResponsableHydrator.php +1 −1 Changes for module/Structure/src/Structure/Form/AjouterResponsable/AjouterResponsableHydrator.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ class AjouterResponsableHydrator implements HydratorInterface { */ public function hydrate(array $data, $object) { $agent = (isset($data['responsable']) AND isset($data['responsable']['id']) AND trim($data['responsable']['id']) !== '')?$this->getAgentService()->getAgent($data['responsable']['id']):null; $agent = (isset($data['responsable']) AND isset($data['responsable']['id']) AND trim($data['responsable']['id']) !== '')?$this->getAgentService()->getAgent($data['responsable']['id'], true):null; $dataDebut = (isset($data['HasPeriode']) AND isset($data['HasPeriode']['date_debut']) AND trim($data['HasPeriode']['date_debut']) !== '')?DateTime::createFromFormat(HasPeriodeFieldset::format, $data['HasPeriode']['date_debut']):null; $dateFin = (isset($data['HasPeriode']) AND isset($data['HasPeriode']['date_fin']) AND trim($data['HasPeriode']['date_fin']) !== '')?DateTime::createFromFormat(HasPeriodeFieldset::format, $data['HasPeriode']['date_fin']):null; Loading Loading
module/Structure/src/Structure/Controller/StructureController.php +2 Changes for module/Structure/src/Structure/Controller/StructureController.php: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -202,6 +202,7 @@ class StructureController extends AbstractActionController { /** @var AjouterResponsableForm $form */ $form = $this->getAjouterResponsableForm(); $form->get('responsable')->setAutocompleteSource($this->url()->fromRoute('agent/rechercher-large', [], [], true)); $form->setAttribute('action', $this->url()->fromRoute('structure/ajouter-responsable', ['structure' => $structure->getId()])); $form->bind($responsable); Loading Loading @@ -250,6 +251,7 @@ class StructureController extends AbstractActionController { /** @var AjouterGestionnaireForm $form */ $form = $this->getAjouterGestionnaireForm(); $form->get('gestionnaire')->setAutocompleteSource($this->url()->fromRoute('agent/rechercher-large', [], [], true)); $form->setAttribute('action', $this->url()->fromRoute('structure/ajouter-gestionnaire', ['structure' => $structure->getId()])); $form->bind($gestionnaire); Loading
module/Structure/src/Structure/Form/AjouterGestionnaire/AjouterGestionnaireHydrator.php +1 −1 Changes for module/Structure/src/Structure/Form/AjouterGestionnaire/AjouterGestionnaireHydrator.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ class AjouterGestionnaireHydrator implements HydratorInterface { */ public function hydrate(array $data, $object) { $agent = (isset($data['gestionnaire']) AND isset($data['gestionnaire']['id']) AND trim($data['gestionnaire']['id']) !== '')?$this->getAgentService()->getAgent($data['gestionnaire']['id']):null; $agent = (isset($data['gestionnaire']) AND isset($data['gestionnaire']['id']) AND trim($data['gestionnaire']['id']) !== '')?$this->getAgentService()->getAgent($data['gestionnaire']['id'], true):null; $dataDebut = (isset($data['HasPeriode']) AND isset($data['HasPeriode']['date_debut']) AND trim($data['HasPeriode']['date_debut']) !== '')?DateTime::createFromFormat(HasPeriodeFieldset::format, $data['HasPeriode']['date_debut']):null; $dateFin = (isset($data['HasPeriode']) AND isset($data['HasPeriode']['date_fin']) AND trim($data['HasPeriode']['date_fin']) !== '')?DateTime::createFromFormat(HasPeriodeFieldset::format, $data['HasPeriode']['date_fin']):null; Loading
module/Structure/src/Structure/Form/AjouterResponsable/AjouterResponsableHydrator.php +1 −1 Changes for module/Structure/src/Structure/Form/AjouterResponsable/AjouterResponsableHydrator.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ class AjouterResponsableHydrator implements HydratorInterface { */ public function hydrate(array $data, $object) { $agent = (isset($data['responsable']) AND isset($data['responsable']['id']) AND trim($data['responsable']['id']) !== '')?$this->getAgentService()->getAgent($data['responsable']['id']):null; $agent = (isset($data['responsable']) AND isset($data['responsable']['id']) AND trim($data['responsable']['id']) !== '')?$this->getAgentService()->getAgent($data['responsable']['id'], true):null; $dataDebut = (isset($data['HasPeriode']) AND isset($data['HasPeriode']['date_debut']) AND trim($data['HasPeriode']['date_debut']) !== '')?DateTime::createFromFormat(HasPeriodeFieldset::format, $data['HasPeriode']['date_debut']):null; $dateFin = (isset($data['HasPeriode']) AND isset($data['HasPeriode']['date_fin']) AND trim($data['HasPeriode']['date_fin']) !== '')?DateTime::createFromFormat(HasPeriodeFieldset::format, $data['HasPeriode']['date_fin']):null; Loading