From: myk%mozilla.org <> Date: Tue, 5 Mar 2002 18:51:38 +0000 (+0000) Subject: Fix for bug 129016: Corrects conditional operator. X-Git-Tag: bugzilla-2.16rc1~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=211e7fc5a3c7bcb79d4dec23d9a05a53c3b50f42;p=thirdparty%2Fbugzilla.git Fix for bug 129016: Corrects conditional operator. Patch by Myk Melez . r=bbaetz x 2 --- diff --git a/post_bug.cgi b/post_bug.cgi index f6af311734..0ae44d32fc 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -125,7 +125,7 @@ if (exists $::FORM{'bug_status'}) { # or NEW, depending on votestoconfirm if either the given state was # unconfirmed (so that a user can't override the below check), or if # the user doesn't have permission to change the default status anyway - if ($::FORM{'bug_status'} == $::unconfirmedstate + if ($::FORM{'bug_status'} eq $::unconfirmedstate || (!UserInGroup("canedit") && !UserInGroup("canconfirm"))) { delete $::FORM{'bug_status'}; }