From: Kohei Yoshino Date: Wed, 19 Jun 2019 22:33:01 +0000 (-0400) Subject: Bug 1560133 - Bug filed as a regression should be given type "defect" X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f11221c69461141bca48fbaf29df15baa87d708d;p=thirdparty%2Fbugzilla.git Bug 1560133 - Bug filed as a regression should be given type "defect" --- diff --git a/enter_bug.cgi b/enter_bug.cgi index 83a93845a..ae3f7c559 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -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'} diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index d7ce09a80..a01725c91 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -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;