From d7febc0f1c59ee5bd65d8b8956ad9b04fa8cfc8b Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 30 Aug 2008 04:53:37 +0000 Subject: Better fix for bug 452799, r=justdave --- Bugzilla/Bug.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 93035dbf2..610a7c0f6 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. -- cgit v1.2.3-24-g4f1b