From c1c638bdfe62c3799759974627d99aff53ba1efc Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 8 May 2023 13:57:54 +0200 Subject: [PATCH] #11132 fix downtime add all modules --- .../godmode/agentes/planned_downtime.editor.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pandora_console/godmode/agentes/planned_downtime.editor.php b/pandora_console/godmode/agentes/planned_downtime.editor.php index f3bea0aa78..f44500132c 100644 --- a/pandora_console/godmode/agentes/planned_downtime.editor.php +++ b/pandora_console/godmode/agentes/planned_downtime.editor.php @@ -1576,14 +1576,12 @@ function insert_downtime_agent($id_downtime, $user_groups_ad) } else { // If is selected 'Any', get all the agents. if (count($agents) === 1 && (int) $agents[0] === -2) { - if ($recursion === true) { - $filter_group = groups_get_children_ids( - $filter_group, - false, - true, - 'AW' - ); - }; + $filter_group = groups_get_children_ids( + $filter_group, + false, + true, + 'AW' + ); $agents = db_get_all_rows_filter( 'tagente',