]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 452799: On bug creation, the bug status with the lowest sortkey is chosen for...
authorlpsolit%gmail.com <>
Sat, 30 Aug 2008 02:43:52 +0000 (02:43 +0000)
committerlpsolit%gmail.com <>
Sat, 30 Aug 2008 02:43:52 +0000 (02:43 +0000)
Bugzilla/Bug.pm

index 0b635012fc1141040126d925803701858c2fd6e8..6a59463e1904774cc3a92367f5ca55e11fded1c9 100644 (file)
@@ -946,7 +946,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.