From a837e110d0bf920be8cbcc3596c2cc273a26b508 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Thu, 28 Jan 2016 09:45:33 +0100 Subject: [PATCH] Fixed bulk deleted action alerts. Tiquet: #3268 (cherry picked from commit aac2460c85fe9d444bef0b7067648333f21754d6) --- pandora_console/godmode/groups/group_list.php | 2 +- .../massive/massive_add_action_alerts.php | 2 +- .../massive/massive_delete_action_alerts.php | 23 ++++++++++--------- pandora_console/include/functions_agents.php | 2 +- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/pandora_console/godmode/groups/group_list.php b/pandora_console/godmode/groups/group_list.php index 866bdd3c39..87bff77a0e 100644 --- a/pandora_console/godmode/groups/group_list.php +++ b/pandora_console/godmode/groups/group_list.php @@ -123,7 +123,7 @@ if (is_ajax ()) { } else { $agents = agents_get_group_agents($id_group, $filter, "none", - false, $recursion); + false, $recursion, false, '|', $add_alert_bulk_op); } // Add keys prefix diff --git a/pandora_console/godmode/massive/massive_add_action_alerts.php b/pandora_console/godmode/massive/massive_add_action_alerts.php index 3900e80fec..8154dbaec7 100755 --- a/pandora_console/godmode/massive/massive_add_action_alerts.php +++ b/pandora_console/godmode/massive/massive_add_action_alerts.php @@ -211,7 +211,7 @@ $(document).ready (function () { var recursion; $("#checkbox-recursion").click(function () { - recursion = this.checked ? 1 : 0; + recursion = this.checked; $("#id_group").trigger("change"); }); diff --git a/pandora_console/godmode/massive/massive_delete_action_alerts.php b/pandora_console/godmode/massive/massive_delete_action_alerts.php index 2236926e53..b41642ecf8 100644 --- a/pandora_console/godmode/massive/massive_delete_action_alerts.php +++ b/pandora_console/godmode/massive/massive_delete_action_alerts.php @@ -139,7 +139,8 @@ $table->data[0][0] = __('Group'); $table->data[0][1] = html_print_select_groups(false, "AW", $return_all_group, 'id_group', $id_group, false, '', '', true); $table->data[0][2] = __('Group recursion'); -$table->data[0][3] = html_print_checkbox ("recursion", 1, $recursion, true, false); +$table->data[0][3] = html_print_checkbox ("recursion", 1, $recursion, + true, false); $table->data[1][0] = __('Agents with templates'); $table->data[1][0] .= '