2010-06-01 Sergio Martin <sergio.martin@artica.es>

* 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
This commit is contained in:
zarzuelo 2010-06-01 11:19:28 +00:00
parent 0d5e89ab68
commit 746a73b753
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2010-06-01 Sergio Martin <sergio.martin@artica.es>
* 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 <rnovoa@artica.es>
* godmode/setup/setup.php: Ask for confirmation before enabling

View File

@ -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;