summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi10
1 files changed, 6 insertions, 4 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index 171b4566f..56f1061c8 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -313,10 +313,12 @@ else {
$default{'component_'} = formvalue('component');
$default{'priority'} = formvalue('priority', Bugzilla->params->{'defaultpriority'});
$default{'bug_severity'} = formvalue('bug_severity', Bugzilla->params->{'defaultseverity'});
- $default{'rep_platform'} = formvalue('rep_platform',
- Bugzilla->params->{'defaultplatform'} || detect_platform());
- $default{'op_sys'} = formvalue('op_sys',
- Bugzilla->params->{'defaultopsys'} || detect_op_sys());
+
+ # BMO - use per-product default hw/os
+ $default{'rep_platform'} = formvalue('rep_platform', $product->default_platform // detect_platform());
+ $default{'op_sys'} = formvalue('op_sys', $product->default_op_sys // detect_op_sys());
+ $vars->{'rep_platform'} = detect_platform();
+ $vars->{'rep_op_sys'} = detect_op_sys();
$vars->{'alias'} = formvalue('alias');
$vars->{'short_desc'} = formvalue('short_desc');