diff options
author | lpsolit%gmail.com <> | 2008-08-30 02:41:57 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-08-30 02:41:57 +0000 |
commit | 0bc5225c57353027b13af1397b564d1e713e28f1 (patch) | |
tree | eb10f4aa6dfa22d37e2865228787b6d64df971af | |
parent | 55596ef8c29ae876c718946d54de787f32033db0 (diff) | |
download | bugs-0bc5225c57353027b13af1397b564d1e713e28f1.tar bugs-0bc5225c57353027b13af1397b564d1e713e28f1.tar.gz bugs-0bc5225c57353027b13af1397b564d1e713e28f1.tar.bz2 bugs-0bc5225c57353027b13af1397b564d1e713e28f1.tar.xz bugs-0bc5225c57353027b13af1397b564d1e713e28f1.zip |
Bug 452799: On bug creation, the bug status with the lowest sortkey is chosen for users without editbugs/canconfirm privs, even when UNCONFIRMED is valid - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap r=justdave a=LpSolit
-rw-r--r-- | Bugzilla/Bug.pm | 4 |
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. |