From 9af56b965123c9312df5c1cc49b1e5aac67e70ae Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 28 Mar 2017 09:08:56 -0400 Subject: Bug 1349769 - takebug should only be default for patch attachments --- template/en/default/attachment/create.html.tmpl | 5 ++++- .../attachment/createformcontents.html.tmpl | 22 ++++++++++++++++------ 2 files changed, 20 insertions(+), 7 deletions(-) (limited to 'template/en/default/attachment') 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 %] - -- cgit v1.2.3-24-g4f1b