mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch '972-added-disabled-agents-to-policy-agents-selects-dev' into 'develop'
Added disabled option to get ggroup agents function See merge request !782
This commit is contained in:
commit
c9a431d2c9
@ -853,11 +853,13 @@ function agents_get_group_agents ($id_group = 0, $search = false,
|
|||||||
//No added search. Show both disabled and non-disabled
|
//No added search. Show both disabled and non-disabled
|
||||||
}
|
}
|
||||||
else if (is_array ($search)) {
|
else if (is_array ($search)) {
|
||||||
$filter['disabled'] = 0;
|
if (!$search['all_agents']) {
|
||||||
if (isset ($search["disabled"])) {
|
$filter['disabled'] = 0;
|
||||||
$filter['disabled'] = (int) $search["disabled"];
|
if (isset ($search["disabled"])) {
|
||||||
|
$filter['disabled'] = (int) $search["disabled"];
|
||||||
unset ($search["disabled"]);
|
|
||||||
|
unset ($search["disabled"]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset ($search["string"])) {
|
if (isset ($search["string"])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user