From aaf6ccb9866059edabb6607d435e2c320afcf611 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Wed, 25 Sep 2002 14:11:32 +0000 Subject: Bug 12282 - General summary reports. Patch by gerv; r=joel. --- Bugzilla/Search.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Bugzilla') 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, " . -- cgit v1.2.3-24-g4f1b