From: lpsolit%gmail.com <> Date: Sat, 30 Aug 2008 04:53:37 +0000 (+0000) Subject: Better fix for bug 452799, r=justdave X-Git-Tag: bugzilla-3.3.1~190 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7febc0f1c59ee5bd65d8b8956ad9b04fa8cfc8b;p=thirdparty%2Fbugzilla.git Better fix for bug 452799, r=justdave --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 93035dbf2b..610a7c0f68 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1026,7 +1026,12 @@ sub _check_bug_status { # A user with no privs cannot choose the initial status. # If UNCONFIRMED is valid for this product, use it; else # use the first bug status available. - $new_status = $product->votes_to_confirm ? 'UNCONFIRMED' : $valid_statuses[0]; + if (grep {$_->name eq 'UNCONFIRMED'} @valid_statuses) { + $new_status = 'UNCONFIRMED'; + } + else { + $new_status = $valid_statuses[0]; + } } } # Time to validate the bug status.