From fd2af921176a3bf78e8c53d9dcaf3f15951f6f8a Mon Sep 17 00:00:00 2001 From: slerena Date: Wed, 28 Apr 2010 15:17:29 +0000 Subject: [PATCH] 2010-04-28 Sancho Lerena * lib/PandoraFMS/Core.pm: Fixed call to group stats and now process all groups (included disabled) and group 1, because with 3.1 group id 1 is not "all" anymore. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2625 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 6 ++++++ pandora_server/lib/PandoraFMS/Core.pm | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 75337ddb22..da382d34a1 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,9 @@ +2010-04-28 Sancho Lerena + + * lib/PandoraFMS/Core.pm: Fixed call to group stats and now + process all groups (included disabled) and group 1, because + with 3.1 group id 1 is not "all" anymore. + 2010-04-26 Ramon Novoa * util/pandora_db.pl: Fixed the purge script. Did not work if diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 6be9b98c2c..a7e29798b6 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -1890,7 +1890,7 @@ sub pandora_group_statistics ($$) { my $group = 0; # Get all groups - my @groups = get_db_rows ($dbh, 'SELECT id_grupo FROM tgrupo WHERE disabled = 0 AND id_grupo > 1'); + my @groups = get_db_rows ($dbh, 'SELECT id_grupo FROM tgrupo'); # For each valid group get the stats: Simple uh? foreach my $group_row (@groups) {