Commit d7febc0f authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Better fix for bug 452799, r=justdave

parent ce8dd111
......@@ -1026,7 +1026,12 @@ sub _check_bug_status {
# A user with no privs cannot choose the initial status.
# 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];
if (grep {$_->name eq 'UNCONFIRMED'} @valid_statuses) {
$new_status = 'UNCONFIRMED';
}
else {
$new_status = $valid_statuses[0];
}
}
}
# 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