keeping filter and pagination when saving OrderJournal

This commit is contained in:
Frank Schubert
2021-11-02 21:47:02 +01:00
parent 42f4da3799
commit 5a132add9b
4 changed files with 26 additions and 10 deletions

View File

@@ -85,10 +85,8 @@ class PatchingController extends mfBaseController {
}
}
//var_dump($pagination);exit;
//$this->layout()->set("terminations", $terms);
$this->layout()->set("pagination", $pagination);
//var_dump($pagination);exit;
$terminations = [];
foreach($terms as $term) {
$term->order = OrderModel::getFirst(["termination_id" => $term->id]);
@@ -179,7 +177,6 @@ class PatchingController extends mfBaseController {
$mode = "add";
$patch_data["termination_id"] = $term_id;
}
//var_dump($mode, $patch_data);exit;
if($mode == "add") {
$patch_data['create_by'] = 1;