diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2011-11-30 20:49:40 +0100 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2011-11-30 20:49:40 +0100 |
commit | 41eee15be2640ae0435e2ab51f2d9718819341cc (patch) | |
tree | c168ca4c68f4578027c5b4f75db7c15af090c013 | |
parent | 67df20a35e068e368a27165342a5b1ed00df2cb6 (diff) | |
download | bugzilla-41eee15be2640ae0435e2ab51f2d9718819341cc.tar.gz bugzilla-41eee15be2640ae0435e2ab51f2d9718819341cc.tar.xz |
Bug 706443 - The New Bug form ignores the defaultplatform and defaultopsys parameters
-rwxr-xr-x | enter_bug.cgi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index 7a471ab95..239a731e2 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -295,12 +295,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'); |