From: lpsolit%gmail.com <> Date: Sat, 30 Aug 2008 02:43:52 +0000 (+0000) Subject: Bug 452799: On bug creation, the bug status with the lowest sortkey is chosen for... X-Git-Tag: bugzilla-3.2rc2~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be2cec02b0ccd86aa64eec1887563077592f4101;p=thirdparty%2Fbugzilla.git 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 r=wurblzap r=justdave a=LpSolit --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 0b635012fc..6a59463e19 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -946,7 +946,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.