You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When rendering a RepeatingFieldCollection, fields of type File (image, audio, etc) have an incorrect key. More specifically, the key is set to the type of field (i.e. image), while it should be the label (i.e. my_field_name). This not only results in unexpected key names, but also overwrites previous file fields in the same block because they all have the same key.
rogierkoppejan
changed the title
Fields of type File are incorrectly rendered inside a block (repeater)
Fields of type File are incorrectly rendered inside a block (repeater)
Sep 17, 2018
rogierkoppejan
changed the title
Fields of type File are incorrectly rendered inside a block (repeater)
Fields of type File are incorrectly rendered inside a repeating block
Sep 17, 2018
When rendering a
RepeatingFieldCollection
, fields of typeFile
(image, audio, etc) have an incorrect key. More specifically, the key is set to the type of field (i.e.image
), while it should be the label (i.e.my_field_name
). This not only results in unexpected key names, but also overwrites previous file fields in the same block because they all have the same key.Example, given the following block:
This will be rendered as:
The text was updated successfully, but these errors were encountered: