From e57ef7068d372a64b734efa13fbabbfd819ca21a Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Tue, 1 Jun 2010 11:19:28 +0000 Subject: [PATCH] 2010-06-01 Sergio Martin * operation/agentes/estado_agente.php: Fixed the pagination on agents view. Now the total agents not include the disabled ones. Bug: 3008770 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2827 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/operation/agentes/estado_agente.php | 1 + 2 files changed, 8 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 1a4ed984e0..064e361f61 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2010-06-01 Sergio Martin + + * operation/agentes/estado_agente.php: Fixed the + pagination on agents view. Now the total agents not + include the disabled ones. + Bug: 3008770 + 2010-06-01 Ramon Novoa * godmode/setup/setup.php: Ask for confirmation before enabling diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index 893bac9544..314c0eddd5 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -117,6 +117,7 @@ $agents = false; if (! empty ($agent_names)) { $total_agents = get_agents (array (//'id_agente' => array_keys ($agent_names), 'order' => 'nombre ASC', + 'disabled' => 0, 'id_grupo' => $groups), array ('COUNT(*) as total')); $total_agents = isset ($total_agents[0]['total']) ? $total_agents[0]['total'] : 0;