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) {