Commit e7e9e5c5 authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 163457 - bugs not registered as "new". Patch by gerv; r=timeless, bbaetz.

parent a1ba12e2
...@@ -148,18 +148,11 @@ if (Param("useqacontact")) { ...@@ -148,18 +148,11 @@ if (Param("useqacontact")) {
} }
} }
if (exists $::FORM{'bug_status'}) { if (UserInGroup("canedit") || UserInGroup("canconfirm")) {
# Ignore the given status, so that we can set it to UNCONFIRMED # Default to NEW if the user hasn't selected another status
# or NEW, depending on votestoconfirm if either the given state was $::FORM{'bug_status'} ||= "NEW";
# unconfirmed (so that a user can't override the below check), or if } else {
# the user doesn't have permission to change the default status anyway # Default to UNCONFIRMED if we are using it, NEW otherwise
if ($::FORM{'bug_status'} eq $::unconfirmedstate
|| (!UserInGroup("canedit") && !UserInGroup("canconfirm"))) {
delete $::FORM{'bug_status'};
}
}
if (!exists $::FORM{'bug_status'}) {
$::FORM{'bug_status'} = $::unconfirmedstate; $::FORM{'bug_status'} = $::unconfirmedstate;
SendSQL("SELECT votestoconfirm FROM products WHERE id = $product_id"); SendSQL("SELECT votestoconfirm FROM products WHERE id = $product_id");
if (!FetchOneColumn()) { if (!FetchOneColumn()) {
......
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