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; - } - + } /**