Fixed redirect to saved object after Workflow Save

This commit is contained in:
Frank Schubert
2021-09-14 22:33:01 +02:00
parent bfe560040e
commit 9fe25d90e3
5 changed files with 30 additions and 8 deletions

View File

@@ -302,8 +302,19 @@ class PipeworkController extends mfBaseController {
}
$sq = "";
$query = [];
if(is_numeric($this->request->s) && $this->request->s > 0) {
$query["s"] = $this->request->s;
}
if (is_array($this->request->filter)) {
$query["filter"] = $this->request->filter;
}
$qs = http_build_query($query);
$this->layout->setFlash("Workflow Eintrag erfolgreich gespeichert.", "success");
$this->redirect("Pipework","Index", http_build_query(["filter" => $this->request->filter]), "object=".$building_id);
$this->redirect("Pipework","Index", $qs, "object=".$building_id);