From: lpsolit%gmail.com <> Date: Sat, 30 Aug 2008 04:57:02 +0000 (+0000) Subject: Better fix for bug 452799, r=justdave X-Git-Tag: bugzilla-3.2rc2~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ef2b28ae6057f81ad5adf43750e183e068755ca;p=thirdparty%2Fbugzilla.git Better fix for bug 452799, r=justdave --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 6a59463e19..37e4ff5bc2 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -948,7 +948,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.