summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-07-03 09:26:28 +0200
committerjocuri%softhome.net <>2004-07-03 09:26:28 +0200
commit00cc8677e25a98e81d70757cc02991e63ee3b975 (patch)
treebb065f42db71af22477394a6e1648794096df3c9 /Bugzilla
parent7600babc226dfaad905fb78a978715639b75e48f (diff)
downloadbugzilla-00cc8677e25a98e81d70757cc02991e63ee3b975.tar.gz
bugzilla-00cc8677e25a98e81d70757cc02991e63ee3b975.tar.xz
Patch for bug 248001: Conversion of boolean conditions in SQL statements for better DB independence; patch by David Lawrence <dkl@redhat.com>; r=joel, vladd; a=justdave.
Diffstat (limited to 'Bugzilla')
-rwxr-xr-xBugzilla/Bug.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index bef512e0f..91cd0d8c8 100755
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -342,11 +342,11 @@ sub groups {
" LEFT JOIN user_group_map" .
" ON user_group_map.group_id = groups.id" .
" AND user_id = $::userid" .
- " AND NOT isbless" .
+ " AND isbless = 0" .
" LEFT JOIN group_control_map" .
" ON group_control_map.group_id = groups.id" .
" AND group_control_map.product_id = " . $self->{'product_id'} .
- " WHERE isbuggroup");
+ " WHERE isbuggroup = 1");
while (&::MoreSQLData()) {
my ($groupid, $name, $description, $ison, $ingroup, $isactive,