Skip to content
Snippets Groups Projects
Commit 8d711e9b authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction rechargement page export rh

parent 0040edcc
No related branches found
No related tags found
No related merge requests found
Pipeline #36236 passed
...@@ -285,11 +285,11 @@ class ExportRhController extends AbstractController ...@@ -285,11 +285,11 @@ class ExportRhController extends AbstractController
} }
} catch (\Exception $e) { } catch (\Exception $e) {
$this->flashMessenger()->addErrorMessage($e->getMessage()); $this->flashMessenger()->addErrorMessage($e->getMessage());
return $this->redirect()->toRoute('intervenant/exporter', ['intervenant' => $intervenant->getId()]); return $this->redirect()->toRoute('intervenant/voir', ['intervenant' => $intervenant->getId()], ['query' => ['tab' => 'export-rh']]);
}
return $this->exporterAction(); }
return $this->redirect()->toRoute('intervenant/voir', ['intervenant' => $intervenant->getId()], ['query' => ['tab' => 'export-rh']]);
} }
...@@ -297,8 +297,8 @@ class ExportRhController extends AbstractController ...@@ -297,8 +297,8 @@ class ExportRhController extends AbstractController
public function synchroniserAction() public function synchroniserAction()
{ {
try { try {
if ($this->getRequest()->isPost()) {
$intervenant = $this->getEvent()->getParam('intervenant'); $intervenant = $this->getEvent()->getParam('intervenant');
if ($this->getRequest()->isPost()) {
if (!$intervenant) { if (!$intervenant) {
throw new \LogicException('Intervenant non précisé ou inexistant'); throw new \LogicException('Intervenant non précisé ou inexistant');
} }
...@@ -315,7 +315,8 @@ class ExportRhController extends AbstractController ...@@ -315,7 +315,8 @@ class ExportRhController extends AbstractController
$this->flashMessenger()->addErrorMessage($e->getMessage()); $this->flashMessenger()->addErrorMessage($e->getMessage());
} }
return $this->exporterAction(); return $this->redirect()->toRoute('intervenant/voir', ['intervenant' => $intervenant->getId()], ['query' => ['tab' => 'export-rh']]);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment