From 6f266063cae475301a83b938da5f07c4bf10bd3c Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 3 Mar 2014 17:06:31 +0000 Subject: [PATCH] 2014-03-03 Miguel de Dios * include/functions_api.php: fixed the call "get_total_modules" now it does not count the pending delete modules. And thanks Cucumber for to the advise. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9486 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/include/functions_api.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index a74bc41f65..eeea6da59d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2014-03-03 Miguel de Dios + + * include/functions_api.php: fixed the call get + 2014-02-25 Sergio Martin * include/javascript/pandora_events.js diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 5aff336f56..48e8618f7c 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -6096,7 +6096,7 @@ function api_get_total_modules($id_group, $trash1, $trash2, $returnType) { $sql = "SELECT COUNT(*) FROM tagente_modulo - WHERE id_module_group=$id_group"; + WHERE id_module_group=$id_group AND delete_pending = 0"; $total = db_get_value_sql($sql);