From 8c7a1340b27db5697f56836fcd1104f51ca89e59 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 25 Nov 2009 09:44:58 +0000 Subject: [PATCH] 2009-11-25 Miguel de Dios * include/functions_modules.php: fix the deletion of module in the function "delete_agent_module" for change the name to avoid the row collision. This change is advised by Sancho lerena. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2129 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_modules.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index da63fdcebb..7812e141af 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2009-11-25 Miguel de Dios + + * include/functions_modules.php: fix the deletion of module in the function + "delete_agent_module" for change the name to avoid the row collision. This + change is advised by Sancho lerena. + 2009-11-25 Miguel de Dios * include/functions_io.php, include/functions.php: change and add functions diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index cda87d9e25..8804da3f28 100644 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -126,7 +126,7 @@ function delete_agent_module ($id_agent_module) { process_sql_delete ('tlayout_data', $where); process_sql_delete ('tagente_estado', $where); process_sql_update ('tagente_modulo', - array ('delete_pending' => 1, 'disabled' => 1), + array ('nombre' => 'delete_pending', 'delete_pending' => 1, 'disabled' => 1), $where); return true;