- {% for attachment in attachments %}
+ {% for key, attachment in attachments %}
diff --git a/plugins/AttachmentCollections/templates/AttachmentCollections/collections.html.twig b/plugins/AttachmentCollections/templates/AttachmentCollections/collections.html.twig
index 27b303feae..edf42966df 100644
--- a/plugins/AttachmentCollections/templates/AttachmentCollections/collections.html.twig
+++ b/plugins/AttachmentCollections/templates/AttachmentCollections/collections.html.twig
@@ -20,23 +20,23 @@
{% endif %}
{{ 'Your collections' | trans }}
- {% for col in collections %}
-
-
{{ col.name }}
-
-
- {{ icon('edit') | raw }}
-
- {{ form(fn.editForm(col)) }}
-
-
-
- {{ icon('delete') | raw }}
-
- {{ form(fn.rmForm(col)) }}
-
-
- {% endfor %}
+ {% for col in collections %}
+
+
{{ col.name }}
+
+
+ {{ icon('edit') | raw }}
+
+ {{ form(fn.editForm(col)) }}
+
+
+
+ {{ icon('delete') | raw }}
+
+ {{ form(fn.rmForm(col)) }}
+
+
+ {% endfor %}