]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Really use PROCESS instead of INCLUDE for custom fields, see bug 1137307
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 13 Apr 2015 17:14:05 +0000 (19:14 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 13 Apr 2015 17:14:05 +0000 (19:14 +0200)
template/en/default/bug/edit.html.tmpl

index 8499ce50202dcfe7c03ddea0bd53f308f1e5ec79..90151161eb116568e3d909c4fecbd3ec68f892ff 100644 (file)
   [% USE Bugzilla %]
   [% FOREACH field = Bugzilla.active_custom_fields %]
     <tr>
-      [% INCLUDE bug/field.html.tmpl value = bug.${field.name}
+      [%# Use PROCESS instead of INCLUDE, because extra_field_item is defined
+        # in the template and must be returned back. INCLUDE cannot do that. %]
+      [% PROCESS bug/field.html.tmpl value = bug.${field.name}
                                      editable = bug.check_can_change_field(field.name, 0, 1) %]
     </tr>
     [% IF extra_field_item %]