]> 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:41:57 +0000 (02:41 +0000)
committerlpsolit%gmail.com <>
Sat, 30 Aug 2008 02:41:57 +0000 (02:41 +0000)
Bugzilla/Bug.pm

index d82b6f6e6de192c0647912f0e01cd6b89753e3f6..93035dbf2b0000b71a8888085fe411228b9b35d0 100644 (file)
@@ -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.