]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 706443 - The New Bug form ignores the defaultplatform and defaultopsys parameters
authorDave Lawrence <dlawrence@mozilla.com>
Wed, 30 Nov 2011 19:39:43 +0000 (14:39 -0500)
committerDave Lawrence <dlawrence@mozilla.com>
Wed, 30 Nov 2011 19:39:43 +0000 (14:39 -0500)
r/a=LpSolit

enter_bug.cgi

index 2337de120d7189b5fa94c6cf47216d09aa2bb58a..6e89322d6a45e708363fd286e3374f1f315a568f 100755 (executable)
@@ -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');