From 47c78150613b2353f0d59a752485f5777681e6b0 Mon Sep 17 00:00:00 2001
From: zarzuelo <noreply@pandorafms.org>
Date: Thu, 22 Apr 2010 17:11:46 +0000
Subject: [PATCH] 2010-04-22  Sergio Martin <sergio.martin@artica.es>

       * operation/incidents/incident.php: Changed the
        All group on combos from 1 to 0



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2590 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
 pandora_console/ChangeLog                        | 4 ++--
 pandora_console/operation/incidents/incident.php | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog
index 419f15d4b6..64db63fb9d 100644
--- a/pandora_console/ChangeLog
+++ b/pandora_console/ChangeLog
@@ -1,7 +1,7 @@
 2010-04-22  Sergio Martin <sergio.martin@artica.es>
 
-       * godmode/groups/group_list.php: Avoid to show
-	the All group on the table
+       * operation/incidents/incident.php: Changed the
+        All group on combos from 1 to 0
 
 2010-04-22  Sergio Martin <sergio.martin@artica.es>
 
diff --git a/pandora_console/operation/incidents/incident.php b/pandora_console/operation/incidents/incident.php
index 4234acf874..6ec92bcb9e 100644
--- a/pandora_console/operation/incidents/incident.php
+++ b/pandora_console/operation/incidents/incident.php
@@ -141,8 +141,8 @@ $estado = (int) get_parameter ("estado", -1);
 if ($estado > 0) //-1 = All
 	$filter .= sprintf (" AND estado = %d", $estado);
 
-$grupo = (int) get_parameter ("grupo", 1);
-if ($grupo > 1) {
+$grupo = (int) get_parameter ("grupo", 0);
+if ($grupo > 0) {
 	$filter .= sprintf (" AND id_grupo = %d", $grupo);
 	if (give_acl ($config['id_user'], $grupo, "IM") == 0) {
 		audit_db ($config["id_user"],$config["remote_addr"],"ACL Forbidden","User tried to read incidents from group without access");