summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/global')
-rw-r--r--template/en/default/global/hidden-fields.html.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/en/default/global/hidden-fields.html.tmpl b/template/en/default/global/hidden-fields.html.tmpl
index 85df62435..76040bea1 100644
--- a/template/en/default/global/hidden-fields.html.tmpl
+++ b/template/en/default/global/hidden-fields.html.tmpl
@@ -27,6 +27,6 @@
[%# Generate hidden form fields for non-excluded fields. %]
[% FOREACH field = form %]
- [% NEXT IF field.key.search(exclude) %]
+ [% NEXT IF exclude && field.key.search(exclude) %]
<input type="hidden" name="[% field.key %]" value="[% field.value FILTER html %]">
[% END %]