Fixed Pagination count in Patching
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user