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

Commit

Permalink
fix(filter) apply second filter whatever the first on Status Details (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
loiclau authored and sc979 committed Jan 2, 2020
1 parent 7ff747d commit a803082
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,14 @@
*/
$s_search = "";
// Display service problems
if ($o == "svcgridSG_pb" || $o == "svcOVSG_pb") {
if (substr($o, -3) === '_pb') {
$s_search .= " AND s.state != 0 AND s.state != 4 ";
}

// Display acknowledged services
if ($o == "svcgridSG_ack_1" || $o == "svcOVSG_ack_1") {
if (substr($o, -6) === '_ack_1') {
$s_search .= " AND s.acknowledged = '1' ";
}

} elseif (substr($o, -6) === '_ack_0') {
// Display not acknowledged services
if ($o == "svcgridSG_ack_0" || $o == "svcOVSG_ack_0") {
$s_search .= " AND s.state != 0 AND s.state != 4 AND s.acknowledged = 0 ";
}

Expand Down

0 comments on commit a803082

Please sign in to comment.