From a8cae997475635af8d93593d82bfe0a5d06bd4cf Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 24 May 2017 16:17:43 +0200 Subject: [PATCH] Updated id module group --- pandora_console/godmode/groups/modu_group_list.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/groups/modu_group_list.php b/pandora_console/godmode/groups/modu_group_list.php index a5a9b57fcb..e9f538f619 100644 --- a/pandora_console/godmode/groups/modu_group_list.php +++ b/pandora_console/godmode/groups/modu_group_list.php @@ -126,7 +126,14 @@ if ($delete_group) { if ($result) { $result = db_process_sql_update('tagente_modulo', array('id_module_group' => 0), array('id_module_group' => $id_group)); - + db_process_sql_update('tpolicy_modules', array('id_module_group' => 0), array('id_module_group' => $id_group)); + db_process_sql_update('tcontainer_item', array('id_module_group' => 0), array('id_module_group' => $id_group)); + db_process_sql_update('tnetwork_component', array('id_module_group' => 0), array('id_module_group' => $id_group)); + db_process_sql_update('treport_content', array('id_module_group' => 0), array('id_module_group' => $id_group)); + db_process_sql_update('tnetwork_map', array('id_module_group' => 0), array('id_module_group' => $id_group)); + db_process_sql_update('tlocal_component', array('id_module_group' => 0), array('id_module_group' => $id_group)); + db_process_sql_update('treport_content_template', array('id_module_group' => 0), array('id_module_group' => $id_group)); + // A group with no modules can be deleted, to avoid a message error then do the follwing if ($result !== false) $result = true;