From e9a68f3b1b6836181a241650b76fc8287dfbae97 Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Fri, 3 Jun 2011 13:33:01 +0000 Subject: [PATCH] 2011-06-03 Juan Manuel Ramon * include/functions_tags.php: Some modifications in update tag function. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4401 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/include/functions_tags.php | 18 ++---------------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 91de7de73e..da89f5ab08 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2011-06-03 Juan Manuel Ramon + + * include/functions_tags.php: Some modifications in update tag function. + 2011-06-03 Javier Lanz * godmode/agentes/module_manager_editor_prediction.php: Edited to get diff --git a/pandora_console/include/functions_tags.php b/pandora_console/include/functions_tags.php index c53a87e750..a05d389570 100644 --- a/pandora_console/include/functions_tags.php +++ b/pandora_console/include/functions_tags.php @@ -270,12 +270,7 @@ function tags_update_module_tag ($id_agent_module, $tags){ $errn = 0; /* First delete module tag entries */ - $result_tag = db_process_delete_temp ('ttag_module', 'id_agente_modulo', $id_agent_module); - - if ($result_tag === false){ - db_process_sql_rollback(); - return false; - } + $result_tag = db_process_sql_delete ('ttag_module', 'id_agente_modulo', $id_agent_module); $values = array(); foreach ($tags as $tag){ @@ -285,16 +280,7 @@ function tags_update_module_tag ($id_agent_module, $tags){ if ($result_tag === false) $errn++; } - - if ($errn > 0){ - db_process_sql_rollback(); - return false; - } - else{ - db_process_sql_commit(); - return true; - } - + } /**