Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
#5410 #5287 - Fix sort and order in real time services monitoring
Browse files Browse the repository at this point in the history
Move include to get correct values for $sort_type and $order
  • Loading branch information
lpinsivy authored Aug 4, 2017
1 parent abe0342 commit bdbec01
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions www/include/monitoring/status/Services/service.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bdbec01

Please sign in to comment.