From: Dave Lawrence Date: Wed, 30 Nov 2011 19:39:43 +0000 (-0500) Subject: Bug 706443 - The New Bug form ignores the defaultplatform and defaultopsys parameters X-Git-Tag: bugzilla-4.3.1~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba6df3b223759d015a6668db6f37f96437a5c676;p=thirdparty%2Fbugzilla.git Bug 706443 - The New Bug form ignores the defaultplatform and defaultopsys parameters r/a=LpSolit --- diff --git a/enter_bug.cgi b/enter_bug.cgi index 2337de120d..6e89322d6a 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -277,12 +277,13 @@ if ($cloned_bug_id) { } # end of cloned bug entry form else { - $default{'component_'} = formvalue('component'); $default{'priority'} = formvalue('priority', Bugzilla->params->{'defaultpriority'}); $default{'bug_severity'} = formvalue('bug_severity', Bugzilla->params->{'defaultseverity'}); - $default{'rep_platform'} = detect_platform(); - $default{'op_sys'} = detect_op_sys(); + $default{'rep_platform'} = formvalue('rep_platform', + Bugzilla->params->{'defaultplatform'} || detect_platform()); + $default{'op_sys'} = formvalue('op_sys', + Bugzilla->params->{'defaultopsys'} || detect_op_sys()); $vars->{'alias'} = formvalue('alias'); $vars->{'short_desc'} = formvalue('short_desc');