monitoring/list: fix limit=0 check
This used to be fixed, but got accidentally re-broken by last commit this night.
This commit is contained in:
parent
7f99be73fd
commit
a4fc6dedea
|
@ -199,11 +199,11 @@ class Monitoring_ListController extends Controller
|
|||
));
|
||||
$limit = $this->params->get('limit');
|
||||
$this->view->limit = $limit;
|
||||
if ($limit) {
|
||||
if ($limit === 0) {
|
||||
$this->view->services = $query->getQuery()->fetchAll();
|
||||
} else {
|
||||
// TODO: Workaround, paginate should be able to fetch limit from new params
|
||||
$this->view->services = $query->paginate($this->params->get('limit'));
|
||||
} else {
|
||||
$this->view->services = $query->getQuery()->fetchAll();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue