summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorbbaetz%cs.mcgill.ca <>2001-11-15 00:12:23 +0100
committerbbaetz%cs.mcgill.ca <>2001-11-15 00:12:23 +0100
commit0f0a89556565f7cf399e53da9366b90ef5d7a815 (patch)
treee89ff7aa8a49b448400b9b1540a96a69e1429a61 /process_bug.cgi
parentc743409389bb5ca4a04c0e11c91a5aae308319e0 (diff)
downloadbugzilla-0f0a89556565f7cf399e53da9366b90ef5d7a815.tar.gz
bugzilla-0f0a89556565f7cf399e53da9366b90ef5d7a815.tar.xz
Bug 107718 pt 2 - use subtraction instead of the ~ operator, which older
mysql versions don't support. Remove the checksetup.pl restriction, too. r=jake x2
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi7
1 files changed, 5 insertions, 2 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 7f3d32098..9e90827f1 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -43,7 +43,8 @@ use vars %::versions,
%::legal_platform,
%::legal_priority,
%::target_milestone,
- %::legal_severity;
+ %::legal_severity,
+ %::superusergroupset;
my $whoid = confirm_login();
@@ -563,7 +564,9 @@ if($::usergroupset ne '0') {
}
if ($groupAdd ne "0" || $groupDel ne "0") {
DoComma();
- $::query .= "groupset = ((groupset & ~($groupDel)) | ($groupAdd))";
+ # mysql < 3.23.5 doesn't support the ~ operator, even though
+ # the docs say that it does
+ $::query .= "groupset = ((groupset & ($::superusergroupset - ($groupDel))) | ($groupAdd))";
}
}