]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1560133 - Bug filed as a regression should be given type "defect"
authorKohei Yoshino <kohei.yoshino@gmail.com>
Wed, 19 Jun 2019 22:33:01 +0000 (18:33 -0400)
committerGitHub <noreply@github.com>
Wed, 19 Jun 2019 22:33:01 +0000 (18:33 -0400)
enter_bug.cgi
template/en/default/bug/create/create.html.tmpl

index 83a93845a089d16009590dc8e2498857677f6d74..ae3f7c559856611ce2142fcc54afec1c8015edec 100755 (executable)
@@ -313,7 +313,9 @@ if ($cloned_bug_id) {
 else {
   $default{'component_'} = formvalue('component');
   $default{'bug_type'}
-    = formvalue('bug_type', Bugzilla->params->{'default_bug_type'});
+    = defined $cgi->param('regressed_by')
+    ? 'defect'
+    : formvalue('bug_type', Bugzilla->params->{'default_bug_type'});
   $default{'priority'}
     = formvalue('priority', Bugzilla->params->{'defaultpriority'});
   $default{'bug_severity'}
index d7ce09a80b472e453ce598b9b6fff4c5e6a0a96f..a01725c91c17bdc2bdeea8cd9a46702f9949e82a 100644 (file)
@@ -69,7 +69,7 @@ function initCrashSignatureField() {
 }
 
 const params = new URLSearchParams(location.search);
-let bug_type_specified = params.has('bug_type') || params.has('cloned_bug_id');
+let bug_type_specified = params.has('bug_type') || params.has('cloned_bug_id') || params.has('regressed_by');
 
 var initialowners = new Array([% product.components.size %]);
 var last_initialowner;