From bc4783099aaba8094d54e2b493488af876f4a6b5 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 7 May 2014 10:25:48 +0200 Subject: [PATCH] Monitoring/ListController: Sort `hostStatus' view from request params The `hostAction()' lacked ordering because the action no longer uses `HostStatusView::fromRequest()'. --- modules/monitoring/application/controllers/ListController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index d12a8caf6..f7ceea492 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -140,7 +140,7 @@ class Monitoring_ListController extends Controller 'host_current_check_attempt', 'host_max_check_attempts' ) - ); + )->order($this->getParam('sort'), $this->getParam('dir')); $query = $dataView->getQuery(); $this->applyRestrictions($dataView);