Loading module/Application/src/Controller/EmployeurController.php +5 −5 Original line number Diff line number Diff line Loading @@ -30,7 +30,6 @@ class EmployeurController extends AbstractController } public function saisieAction() { $employeur = $this->getEvent()->getParam('employeur'); Loading @@ -49,7 +48,10 @@ class EmployeurController extends AbstractController /** * @var Employeur $employeur */ $employeur->setCritereRecherche($employeur->getRaisonSociale() . ' ' . $employeur->getNomCommercial() . ' ' . $employeur->getSiret()); $raisonSociale = $employeur->getRaisonSociale() ? strtolower($employeur->getRaisonSociale()) : ''; $nomCommercial = $employeur->getNomCommercial() ? strtolower($employeur->getNomCommercial()) : ''; $employeur->setCritereRecherche($raisonSociale . ' ' . $nomCommercial . ' ' . $employeur->getSiret()); $employeur->setSourceCode($employeur->getSiret()); $this->getServiceEmployeur()->save($employeur); $this->flashMessenger()->addSuccessMessage( Loading @@ -61,7 +63,6 @@ class EmployeurController extends AbstractController } public function supprimerAction() { $employeur = $this->getEvent()->getParam('employeur'); Loading @@ -71,7 +72,6 @@ class EmployeurController extends AbstractController } public function rechercheAction() { Loading @@ -81,13 +81,13 @@ class EmployeurController extends AbstractController ]);*/ $term = $this->params()->fromQuery('term'); $employeurs = $this->getServiceEmployeur()->rechercheEmployeur($term); return new JsonModel($employeurs); } public function rechercheJsonAction() { $critere = $this->params()->fromPost('critere'); Loading Loading
module/Application/src/Controller/EmployeurController.php +5 −5 Original line number Diff line number Diff line Loading @@ -30,7 +30,6 @@ class EmployeurController extends AbstractController } public function saisieAction() { $employeur = $this->getEvent()->getParam('employeur'); Loading @@ -49,7 +48,10 @@ class EmployeurController extends AbstractController /** * @var Employeur $employeur */ $employeur->setCritereRecherche($employeur->getRaisonSociale() . ' ' . $employeur->getNomCommercial() . ' ' . $employeur->getSiret()); $raisonSociale = $employeur->getRaisonSociale() ? strtolower($employeur->getRaisonSociale()) : ''; $nomCommercial = $employeur->getNomCommercial() ? strtolower($employeur->getNomCommercial()) : ''; $employeur->setCritereRecherche($raisonSociale . ' ' . $nomCommercial . ' ' . $employeur->getSiret()); $employeur->setSourceCode($employeur->getSiret()); $this->getServiceEmployeur()->save($employeur); $this->flashMessenger()->addSuccessMessage( Loading @@ -61,7 +63,6 @@ class EmployeurController extends AbstractController } public function supprimerAction() { $employeur = $this->getEvent()->getParam('employeur'); Loading @@ -71,7 +72,6 @@ class EmployeurController extends AbstractController } public function rechercheAction() { Loading @@ -81,13 +81,13 @@ class EmployeurController extends AbstractController ]);*/ $term = $this->params()->fromQuery('term'); $employeurs = $this->getServiceEmployeur()->rechercheEmployeur($term); return new JsonModel($employeurs); } public function rechercheJsonAction() { $critere = $this->params()->fromPost('critere'); Loading