Filter persists after save

This commit is contained in:
Frank Schubert
2021-11-02 20:24:23 +01:00
parent 6b8150b214
commit e2925adec5
2 changed files with 15 additions and 2 deletions

View File

@@ -207,8 +207,21 @@ class CpeprovisioningController extends mfBaseController {
}
}
$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("Eintrag erfolgreich gespeichert.", "success");
$this->redirect("Cpeprovisioning");
$this->redirect("Cpeprovisioning","Index", $qs);
}