aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-09-04 16:15:05 +0000
committerjocuri%softhome.net <>2004-09-04 16:15:05 +0000
commit8a86df6aec9168d1d67abdc8c4235e49c445902f (patch)
treee3c199cf557bca1433a5ea30aa9b2964d83e6dcc /request.cgi
parentPatch for bug 257419: make checksetup.pl quote database name in 'show table s... (diff)
downloadbugzilla-8a86df6aec9168d1d67abdc8c4235e49c445902f.tar.gz
bugzilla-8a86df6aec9168d1d67abdc8c4235e49c445902f.tar.bz2
bugzilla-8a86df6aec9168d1d67abdc8c4235e49c445902f.zip
Bug 250591: Conversion of boolean conditions in SQL statements for better db independence (take 2); patch by David Lawrence <dkl@redhat.com>; r=vladd, a=justdave.
Diffstat (limited to 'request.cgi')
-rwxr-xr-xrequest.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/request.cgi b/request.cgi
index 047c4fa14..a494128d8 100755
--- a/request.cgi
+++ b/request.cgi
@@ -81,7 +81,7 @@ sub queue {
# should not have access.
" COUNT(DISTINCT ugmap.group_id) AS cntuseringroups,
COUNT(DISTINCT bgmap.group_id) AS cntbugingroups,
- ((COUNT(DISTINCT ccmap.who) AND cclist_accessible = 1)
+ ((COUNT(DISTINCT ccmap.who) > 0 AND cclist_accessible = 1)
OR ((bugs.reporter = $::userid) AND bugs.reporter_accessible = 1)
OR bugs.assigned_to = $::userid ) AS canseeanyway
" .