From a62c56bbc177d7dfff4ffce267aea96c7142b086 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 18 Aug 2009 09:48:51 +0000 Subject: [PATCH] 2009-08-18 Miguel de Dios * godmode/agentes/agent_template.php: refine the query to extract modules from DB, now the query don't search modules are pending to delete. Fixes: 2824695 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1857 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/godmode/agentes/agent_template.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 8138171b1a..5249e43dbd 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2009-08-18 Miguel de Dios + * godmode/agentes/agent_template.php: refine the query to extract modules + from DB, now the query don't search modules are pending to delete. + Fixes: 2824695 + 2009-08-18 Miguel de Dios * ChangeLog: add comments of last commits, I forget update file. diff --git a/pandora_console/godmode/agentes/agent_template.php b/pandora_console/godmode/agentes/agent_template.php index 755409788b..b35eb3fd85 100644 --- a/pandora_console/godmode/agentes/agent_template.php +++ b/pandora_console/godmode/agentes/agent_template.php @@ -111,7 +111,7 @@ echo ''; // ========================== echo "

".__('Assigned modules')."

"; -$sql = sprintf ("SELECT * FROM tagente_modulo WHERE id_agente = %d ORDER BY id_module_group, nombre", $id_agente); +$sql = sprintf ("SELECT * FROM tagente_modulo WHERE id_agente = %d AND delete_pending = false ORDER BY id_module_group, nombre", $id_agente); $result = get_db_all_rows_sql ($sql); if ($result === false) { $result = array ();