]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 250591: Conversion of boolean conditions in SQL statements for better db independ...
authorjocuri%softhome.net <>
Sat, 4 Sep 2004 16:15:05 +0000 (16:15 +0000)
committerjocuri%softhome.net <>
Sat, 4 Sep 2004 16:15:05 +0000 (16:15 +0000)
request.cgi

index 047c4fa1437d35b5dffa3efa28ff811f3289b9a4..a494128d8973ec3a7748bcd5670272f1e7f4dd04 100755 (executable)
@@ -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 
     " .