diff options
author | lpsolit%gmail.com <> | 2008-08-30 06:53:37 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-08-30 06:53:37 +0200 |
commit | d7febc0f1c59ee5bd65d8b8956ad9b04fa8cfc8b (patch) | |
tree | 94cf2a3972a69aa0bd4c27f61da948fe3dc81543 | |
parent | ce8dd1116cba5c06500c4c02f23540c6a389357d (diff) | |
download | bugzilla-d7febc0f1c59ee5bd65d8b8956ad9b04fa8cfc8b.tar.gz bugzilla-d7febc0f1c59ee5bd65d8b8956ad9b04fa8cfc8b.tar.xz |
Better fix for bug 452799, r=justdave
-rw-r--r-- | Bugzilla/Bug.pm | 7 |
1 files changed, 6 insertions, 1 deletions
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. |