Skip to content

Commit 3764e4f

Browse files
authored
Fix bug in post.twig (#2161)
If a posted value is an array, this template iterates through it as 'index' and 'item' and then passes 'value' to the template where it should be 'item'. This is causing post values that are supposed to be the elements of arrays to be the string "Array" instead.
1 parent 6ee5162 commit 3764e4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/post.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{%- if value is iterable %}
2222
{%- for index, item in value %}
2323

24-
<input type="hidden" name="{{ name }}[{{ index }}]" value="{{ value }}">
24+
<input type="hidden" name="{{ name }}[{{ index }}]" value="{{ item }}">
2525
{%- endfor %}
2626
{%- else %}
2727

0 commit comments

Comments
 (0)