From 0bc5225c57353027b13af1397b564d1e713e28f1 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 30 Aug 2008 02:41:57 +0000 Subject: [PATCH] =?utf8?q?Bug=20452799:=20On=20bug=20creation,=20the=20bug?= =?utf8?q?=20status=20with=20the=20lowest=20sortkey=20is=20chosen=20for=20?= =?utf8?q?users=20without=20editbugs/canconfirm=20privs,=20even=20when=20U?= =?utf8?q?NCONFIRMED=20is=20valid=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83?= =?utf8?q?=C2=A9ric=20Buclin=20=20r=3Dwurblzap=20r=3Dju?= =?utf8?q?stdave=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bugzilla/Bug.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index d82b6f6e6d..93035dbf2b 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. -- 2.47.2