back to the list keep the query parameters required by the list

This commit is contained in:
2018-07-05 16:37:59 +02:00
parent 066efdc042
commit 39e166eb5b
8 changed files with 57 additions and 34 deletions

View File

@@ -194,9 +194,10 @@ class SingleTaskController extends Controller
$this->addFlash('success', $translator
->trans("The task has been updated"));
return $this->redirectToRoute('chill_task_singletask_list', [
'person_id' => $task->getPerson()->getId()
]);
return $this->redirectToRoute(
'chill_task_singletask_list',
$request->query->get('list_params', [])
);
} else {
$this->addFlash('error', $translator->trans("This form contains errors"));
@@ -277,9 +278,10 @@ class SingleTaskController extends Controller
->trans("The task has been successfully removed."));
return $this->redirect($this->generateUrl(
'chill_task_singletask_list', array(
'person_id' => $personId
)));
'chill_task_singletask_list',
$request->query->get('list_params', [
'person_id' => $person->getId()
])));
}
}