From: Dylan William Hardison Date: Tue, 28 Mar 2017 13:08:56 +0000 (-0400) Subject: Bug 1349769 - takebug should only be default for patch attachments X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9af56b965123c9312df5c1cc49b1e5aac67e70ae;p=thirdparty%2Fbugzilla.git Bug 1349769 - takebug should only be default for patch attachments --- diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl index 63bf14b37..eae63adf1 100644 --- a/template/en/default/attachment/create.html.tmpl +++ b/template/en/default/attachment/create.html.tmpl @@ -84,7 +84,10 @@ TUI_hide_default('attachment_text_field'); If you want to assign this [% terms.bug %] to yourself, check the box below.
- + [% IF bug.assigned_to.login == "nobody@mozilla.org" || bug.assigned_to.login.search('.bugs$') %] + [% take_if_patch = 1 %] + [% END %] + [% bug_statuses = [] %] [% FOREACH bug_status = bug.status.can_change_to %] diff --git a/template/en/default/attachment/createformcontents.html.tmpl b/template/en/default/attachment/createformcontents.html.tmpl index 7f738c07f..1ab3893cd 100644 --- a/template/en/default/attachment/createformcontents.html.tmpl +++ b/template/en/default/attachment/createformcontents.html.tmpl @@ -28,7 +28,7 @@ paste text as attachment).
- + @@ -55,13 +55,23 @@ If the attachment is a patch, check the box below.
[% Hook.process("patch_notes") %] - +

[%# Reset this whenever the page loads so that the JS state is up to date %] -