Commit 0bc5225c authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 452799: On bug creation, the bug status with the lowest sortkey is chosen…

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é©ric Buclin <LpSolit@gmail.com> r=wurblzap r=justdave a=LpSolit
parent 55596ef8
...@@ -1024,7 +1024,9 @@ sub _check_bug_status { ...@@ -1024,7 +1024,9 @@ sub _check_bug_status {
} }
else { else {
# A user with no privs cannot choose the initial status. # 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. # Time to validate the bug status.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment