summaryrefslogtreecommitdiffstats
path: root/extensions/FlagTypeComment/template/en/default/hook/admin/flag-type/edit-rows.html.tmpl
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-10-05 23:35:22 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-10-05 23:35:22 +0200
commitaaedc17c5e2f7375195cb95dbd25fbc6c42febc0 (patch)
tree36cd46dccd1992109450cc3f400a99efcc42a13e /extensions/FlagTypeComment/template/en/default/hook/admin/flag-type/edit-rows.html.tmpl
parentfe219884ea1149cdcd2e5a145720b642a1e99320 (diff)
downloadbugzilla-aaedc17c5e2f7375195cb95dbd25fbc6c42febc0.tar.gz
bugzilla-aaedc17c5e2f7375195cb95dbd25fbc6c42febc0.tar.xz
Fix attachment flag creation errors due to FlagTypeComment extension
Diffstat (limited to 'extensions/FlagTypeComment/template/en/default/hook/admin/flag-type/edit-rows.html.tmpl')
-rw-r--r--extensions/FlagTypeComment/template/en/default/hook/admin/flag-type/edit-rows.html.tmpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/extensions/FlagTypeComment/template/en/default/hook/admin/flag-type/edit-rows.html.tmpl b/extensions/FlagTypeComment/template/en/default/hook/admin/flag-type/edit-rows.html.tmpl
index 71aaad424..3ca5e8aa7 100644
--- a/extensions/FlagTypeComment/template/en/default/hook/admin/flag-type/edit-rows.html.tmpl
+++ b/extensions/FlagTypeComment/template/en/default/hook/admin/flag-type/edit-rows.html.tmpl
@@ -27,13 +27,17 @@
</tr>
[% FOREACH state = ftc_states %]
+ [% ftc_type_id = "ftc_${type.id}_$state" %]
+ [% IF action == 'insert' %]
+ [% ftc_type_id = "ftc_new_$state" %]
+ [% END %]
<tr>
<td>&nbsp;</td>
<td>
for [% state FILTER html %]<br>
<textarea
- id="ftc_[% type.id FILTER html %]_[% state FILTER html %]"
- name="ftc_[% type.id FILTER html %]_[% state FILTER html %]"
+ id="[% ftc_type_id FILTER html %]"
+ name="[% ftc_type_id FILTER html %]"
cols="50" rows="2">[% ftc_flags.${type.id}.$state FILTER html %]</textarea>
</td>
</tr>