From ae9abbeed74247afa179107bffbab73cdf9f6172 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Tue, 29 Sep 2015 10:14:30 +0200 Subject: [PATCH] Add warning when was creating group and console is part of a metaconsole. Tiquet: #2790 --- .../godmode/groups/configure_group.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/groups/configure_group.php b/pandora_console/godmode/groups/configure_group.php index 57103e3821..8e3bca5800 100644 --- a/pandora_console/godmode/groups/configure_group.php +++ b/pandora_console/godmode/groups/configure_group.php @@ -187,7 +187,15 @@ if (defined("METACONSOLE")) else $sec = "gagente"; -echo '
'; +if (isset($config['metaconsole_node_id']) && $config['metaconsole_node_id'] > 0) { + $confirm_bottom = " onsubmit=' return message_check_create();'"; +} +else +{ + $confirm_bottom = ""; +} + +echo ''; html_print_table ($table); echo '
'; if ($id_group) { @@ -206,6 +214,15 @@ enterprise_hook('close_meta_frame'); ?>