summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Bug.pm7
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.