summaryrefslogtreecommitdiffstats
path: root/template/en/default/attachment/create.html.tmpl
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-03-28 15:08:56 +0200
committerDylan William Hardison <dylan@hardison.net>2017-03-28 15:09:20 +0200
commit9af56b965123c9312df5c1cc49b1e5aac67e70ae (patch)
treeb24224e4643469b2acdffa8f1d821b5e14ac28b4 /template/en/default/attachment/create.html.tmpl
parentdc6eca0cc8ab4dd41a5b5f618fa8e49b0fe194f7 (diff)
downloadbugzilla-9af56b965123c9312df5c1cc49b1e5aac67e70ae.tar.gz
bugzilla-9af56b965123c9312df5c1cc49b1e5aac67e70ae.tar.xz
Bug 1349769 - takebug should only be default for patch attachments
Diffstat (limited to 'template/en/default/attachment/create.html.tmpl')
-rw-r--r--template/en/default/attachment/create.html.tmpl5
1 files changed, 4 insertions, 1 deletions
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');
<td>
<em>If you want to assign this [% terms.bug %] to yourself,
check the box below.</em><br>
- <input type="checkbox" id="takebug" name="takebug" value="1" [% IF bug.assigned_to.login == "nobody@mozilla.org" || bug.assigned_to.login.search('.bugs$') %] checked [% END %]>
+ [% IF bug.assigned_to.login == "nobody@mozilla.org" || bug.assigned_to.login.search('.bugs$') %]
+ [% take_if_patch = 1 %]
+ [% END %]
+ <input type="checkbox" id="takebug" name="takebug" value="1" [% IF take_if_patch %] data-take-if-patch="1" [% END %]>
<label for="takebug">take [% terms.bug %]</label>
[% bug_statuses = [] %]
[% FOREACH bug_status = bug.status.can_change_to %]