summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Bug.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index d82b6f6e6..93035dbf2 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -1024,7 +1024,9 @@ sub _check_bug_status {
}
else {
# A user with no privs cannot choose the initial status.
- $new_status = $valid_statuses[0];
+ # 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];
}
}
# Time to validate the bug status.