]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 240093 - get canconfirm working again. Patch by gerv; r=joel, a=justdave.
authorgerv%gerv.net <>
Sat, 17 Jul 2004 23:09:27 +0000 (23:09 +0000)
committergerv%gerv.net <>
Sat, 17 Jul 2004 23:09:27 +0000 (23:09 +0000)
process_bug.cgi

index 7a6e2bbc58f8c1d3dcb76c8577fc617cc84bce42..b69b3da271626ff568d37a5eadf720e53191c5a6 100755 (executable)
@@ -403,12 +403,14 @@ sub CheckCanChangeField {
     }
     
     # Allow anyone with "canconfirm" to confirm bugs.
-    if (($field eq "bug_status") && 
-        ($oldvalue eq $::unconfirmedstate) &&
-        IsOpenedState($newvalue) &&
-        $UserInCanConfirmGroupSet) 
-    {
-        return 1;
+    if ($UserInCanConfirmGroupSet) {
+        if (($field eq "canconfirm") ||
+            (($field eq "bug_status") && 
+             ($oldvalue eq $::unconfirmedstate) &&
+             IsOpenedState($newvalue)))
+        {
+            return 1;
+        }
     }
     
     # START DO_NOT_CHANGE