From bdbec010fd40dff68be312b3cd71d97ca9c65563 Mon Sep 17 00:00:00 2001 From: Laurent Pinsivy Date: Fri, 4 Aug 2017 16:24:47 +0200 Subject: [PATCH] #5410 #5287 - Fix sort and order in real time services monitoring Move include to get correct values for $sort_type and $order --- www/include/monitoring/status/Services/service.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/www/include/monitoring/status/Services/service.php b/www/include/monitoring/status/Services/service.php index 96d28ad9c44..1edee84e4b9 100644 --- a/www/include/monitoring/status/Services/service.php +++ b/www/include/monitoring/status/Services/service.php @@ -168,11 +168,6 @@ $global_sort_order = $centreon->optGen["global_sort_order"]; } -include_once("./include/monitoring/status/Common/default_poller.php"); -include_once("./include/monitoring/status/Common/default_hostgroups.php"); -include_once("./include/monitoring/status/Common/default_servicegroups.php"); -include_once($svc_path . "/serviceJS.php"); - if ($o == "svcpb" || $o == "svc_unhandled" || empty($o)) { if (!empty($filters["sort_type"])) { $sort_type = $filters["sort_type"]; @@ -203,6 +198,10 @@ } } +include_once("./include/monitoring/status/Common/default_poller.php"); +include_once("./include/monitoring/status/Common/default_hostgroups.php"); +include_once("./include/monitoring/status/Common/default_servicegroups.php"); +include_once($svc_path . "/serviceJS.php"); /* * Smarty template Init