mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#11132 fix downtime add all modules
This commit is contained in:
parent
e96fda12eb
commit
c1c638bdfe
@ -1576,14 +1576,12 @@ function insert_downtime_agent($id_downtime, $user_groups_ad)
|
|||||||
} else {
|
} else {
|
||||||
// If is selected 'Any', get all the agents.
|
// If is selected 'Any', get all the agents.
|
||||||
if (count($agents) === 1 && (int) $agents[0] === -2) {
|
if (count($agents) === 1 && (int) $agents[0] === -2) {
|
||||||
if ($recursion === true) {
|
|
||||||
$filter_group = groups_get_children_ids(
|
$filter_group = groups_get_children_ids(
|
||||||
$filter_group,
|
$filter_group,
|
||||||
false,
|
false,
|
||||||
true,
|
true,
|
||||||
'AW'
|
'AW'
|
||||||
);
|
);
|
||||||
};
|
|
||||||
|
|
||||||
$agents = db_get_all_rows_filter(
|
$agents = db_get_all_rows_filter(
|
||||||
'tagente',
|
'tagente',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user