mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 21:34:28 +02:00
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');
|
$limit = $this->params->get('limit');
|
||||||
$this->view->limit = $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
|
// TODO: Workaround, paginate should be able to fetch limit from new params
|
||||||
$this->view->services = $query->paginate($this->params->get('limit'));
|
$this->view->services = $query->paginate($this->params->get('limit'));
|
||||||
} else {
|
|
||||||
$this->view->services = $query->getQuery()->fetchAll();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user