From b1fa001fe8ca747c3916a44f028ebe0e37633bf7 Mon Sep 17 00:00:00 2001 From: Jorge Rincon Date: Fri, 29 Sep 2023 12:50:18 +0200 Subject: [PATCH] #12091 Change selection type in agents and modules in Bulk Operations Add alerts --- .../godmode/massive/massive_add_alerts.php | 39 ++++++++++++++++++- pandora_console/include/javascript/pandora.js | 2 +- 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/pandora_console/godmode/massive/massive_add_alerts.php b/pandora_console/godmode/massive/massive_add_alerts.php index 57261a357b..ad5cc00e27 100755 --- a/pandora_console/godmode/massive/massive_add_alerts.php +++ b/pandora_console/godmode/massive/massive_add_alerts.php @@ -255,7 +255,18 @@ $table->data[1][1] = html_print_select( true, '', false, - 'width:180px;' + 'width:180px;', + false, + false, + false, + '', + false, + false, + false, + false, + true, + true, + true ); $table->data[1][2] = __('When select agents'); $table->data[1][2] .= '
'; @@ -271,7 +282,31 @@ $table->data[1][2] .= html_print_select( '', true ); -$table->data[1][3] = html_print_select([], 'module[]', '', false, '', '', true, true, false, '', false, 'width:180px;'); +$table->data[1][3] = html_print_select( + [], + 'module[]', + '', + false, + '', + '', + true, + true, + false, + '', + false, + 'width:180px;', + false, + false, + false, + '', + true, + false, + false, + false, + true, + true, + false +); $usr_groups = users_get_groups($config['id_user'], 'LW', true); $filter_groups = ''; diff --git a/pandora_console/include/javascript/pandora.js b/pandora_console/include/javascript/pandora.js index b13301d77f..480de5bfa6 100644 --- a/pandora_console/include/javascript/pandora.js +++ b/pandora_console/include/javascript/pandora.js @@ -305,7 +305,7 @@ function agent_changed_by_multiple_agents(event, id_agent, selected) { $("") .html(anyText) .attr("value", 0) - .prop("selected", true) + .prop("selected", false) ); } }