Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imagelist and Filelist do not return array when there's only one value #1395

Closed
I-Valchev opened this issue May 22, 2020 · 0 comments · Fixed by #1396
Closed

Imagelist and Filelist do not return array when there's only one value #1395

I-Valchev opened this issue May 22, 2020 · 0 comments · Fixed by #1396
Labels
🐛 tag: bug This is a bug.

Comments

@I-Valchev
Copy link
Member

When there's only one image/file in an imagelist/filelist, the value of the field is that image/file, not an array containing one element.

That creates issues when iterating over this in twig.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 tag: bug This is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant