summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2011-11-30 20:39:43 +0100
committerDave Lawrence <dlawrence@mozilla.com>2011-11-30 20:39:43 +0100
commitba6df3b223759d015a6668db6f37f96437a5c676 (patch)
tree6d58988a2d36cfc855c2a852d34ce52a4522f375
parent672397b3ff407597b6aee4948a8f4f374fa9a80b (diff)
downloadbugzilla-ba6df3b223759d015a6668db6f37f96437a5c676.tar.gz
bugzilla-ba6df3b223759d015a6668db6f37f96437a5c676.tar.xz
Bug 706443 - The New Bug form ignores the defaultplatform and defaultopsys parameters
r/a=LpSolit
-rwxr-xr-xenter_bug.cgi7
1 files changed, 4 insertions, 3 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index 2337de120..6e89322d6 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');