diff --git a/application/Patching/PatchingController.php b/application/Patching/PatchingController.php index 4335a1c63..94b381663 100644 --- a/application/Patching/PatchingController.php +++ b/application/Patching/PatchingController.php @@ -77,6 +77,7 @@ class PatchingController extends mfBaseController { } } + //var_dump($terms_search);exit; $pagination['maxItems'] = PatchingModel::searchByTerminationCount($terms_search); foreach(PatchingModel::searchByTermination($terms_search, $pagination) as $t) { if(!array_key_exists($t->id, $terms)) { @@ -84,8 +85,8 @@ class PatchingController extends mfBaseController { } } - //var_dump($buildings);exit; - $this->layout()->set("terminations", $terms); + //var_dump($pagination);exit; + //$this->layout()->set("terminations", $terms); $this->layout()->set("pagination", $pagination); //var_dump($pagination);exit; $terminations = []; @@ -95,7 +96,7 @@ class PatchingController extends mfBaseController { } - $this->layout()->set("terminations", $terms); + $this->layout()->set("terminations", $terminations); } diff --git a/application/Patching/PatchingModel.php b/application/Patching/PatchingModel.php index c41c071b3..37dc8e8f9 100644 --- a/application/Patching/PatchingModel.php +++ b/application/Patching/PatchingModel.php @@ -140,7 +140,6 @@ class PatchingModel { AND Workflowvalue.object_id = OrderProduct.termination_id AND Workflowvalue.value_int = 1 AND $where - GROUP BY Termination.id ORDER BY Termination.id ASC LIMIT 1"; mfLoghandler::singleton()->debug($sql);