From 3771644661996e0568ca99adf41fb7d0d4bb273f Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Wed, 7 Jun 2023 13:32:38 +0200 Subject: [PATCH] #11428 Add delete agent to warning conditional --- .../godmode/massive/massive_operations.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pandora_console/godmode/massive/massive_operations.php b/pandora_console/godmode/massive/massive_operations.php index b4d4474c20..b08d61ff4c 100755 --- a/pandora_console/godmode/massive/massive_operations.php +++ b/pandora_console/godmode/massive/massive_operations.php @@ -435,12 +435,14 @@ if (is_management_allowed() === false) { $text_warning = __('any node'); } - ui_print_warning_message( - __( - 'This node is configured with centralized mode. To delete agents go to %s', - $text_warning - ) - ); + if ($option == 'delete_agents') { + ui_print_warning_message( + __( + 'This node is configured with centralized mode. To delete agents go to %s', + $text_warning + ) + ); + } } $tip = '';