From: gerv%gerv.net <> Date: Sat, 17 Jul 2004 23:09:27 +0000 (+0000) Subject: Bug 240093 - get canconfirm working again. Patch by gerv; r=joel, a=justdave. X-Git-Tag: bugzilla-2.18rc2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57900bfcf53ac8ee3c5c0c939e33ac724915b2c2;p=thirdparty%2Fbugzilla.git Bug 240093 - get canconfirm working again. Patch by gerv; r=joel, a=justdave. --- diff --git a/process_bug.cgi b/process_bug.cgi index 7a6e2bbc58..b69b3da271 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -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