Commit e37b49ae authored by root's avatar root
Browse files

Merge branch 'master' of https://git.unicaen.fr/dsi/preecog

parents c700697b 83232dd4
Loading
Loading
Loading
Loading
+4
Changes for module/Structure/src/Structure/Controller/StructureController.php: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -325,9 +325,13 @@ class StructureController extends AbstractActionController {
        $structureAgentForce->setStructure($structure);

        $form = $this->getSelectionAgentForm();
        $form->get('agent')->setAutocompleteSource($this->url()->fromRoute('agent/rechercher-large', [], [], true));
        $form->setAttribute('action',$this->url()->fromRoute('structure/ajouter-manuellement-agent', ['structure' => $structure->getId()], [], true));
        $form->bind($structureAgentForce);




        $request = $this->getRequest();
        if ($request->isPost()) {
            $data = $request->getPost();