summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-09-25 16:11:32 +0200
committergerv%gerv.net <>2002-09-25 16:11:32 +0200
commitaaf6ccb9866059edabb6607d435e2c320afcf611 (patch)
tree2d512b5e7c627ba70043e501c512a8f52e97d307 /Bugzilla
parentbe7edaf914d0ddfbd4c863ea2d1f0101491fe611 (diff)
downloadbugzilla-aaf6ccb9866059edabb6607d435e2c320afcf611.tar.gz
bugzilla-aaf6ccb9866059edabb6607d435e2c320afcf611.tar.xz
Bug 12282 - General summary reports. Patch by gerv; r=joel.
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index d6e7a9b7f..642965eb2 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -813,6 +813,10 @@ sub init {
$suppseen{$str} = 1;
}
}
+
+ # Make sure we create a legal SQL query.
+ @andlist = ("1 = 1") if !@andlist;
+
my $query = ("SELECT DISTINCT " .
join(', ', @fields) .
", COUNT(DISTINCT ugmap.group_id) AS cntuseringroups, " .