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

Commit

Permalink
#564 Fix filter for service by servicegroup
Browse files Browse the repository at this point in the history
  • Loading branch information
kduret committed Sep 17, 2015
1 parent 757490b commit 228ab06
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@
if ($hSearch != ""){
$query .= "AND h.name like '%" . $hSearch . "%' ";
}


/* Servicegroup search */
if ($sgSearch != ""){
$query .= "AND sg.name like '%" . $sgSearch . "%' ";
$query .= "AND sg.name like '" . $sgSearch . "' ";
}

/* Service search */
Expand Down Expand Up @@ -155,6 +156,9 @@
}
$sg_search .= implode(" OR ", $servicegroupsSql1);
$sg_search .= ") ";
if ($sgSearch != ""){
$sg_search .= "AND sg.name like '" . $sgSearch . "' ";
}
}

/** ***************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@
$query .= "AND h.name like '%" . $hSearch . "%' ";
}

/* Servicegroup search */
if ($sgSearch != ""){
$query .= "OR sg.name like '%" . $sgSearch . "%' ";
$query .= "AND sg.name like '" . $sgSearch . "' ";
}

/* Service search */
Expand Down Expand Up @@ -156,6 +157,9 @@
}
$sg_search .= implode(" OR ", $servicegroupsSql1);
$sg_search .= ") ";
if ($sgSearch != ""){
$sg_search .= "AND sg.name like '" . $sgSearch . "' ";
}
}

/** ***************************************************
Expand Down

0 comments on commit 228ab06

Please sign in to comment.