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
my_repeater:
label: My repeater
type: repeater
fields:
name:
label: Name
type: text
libk:
label: Link
error: Please enter a valid URL
pattern: url
type: text
logo:
label: Logo
type: image
Add two sets of content into the repeater, then save
Remove one of the sets and save, this should work as expected leaving one remaining
Remove the remaining set, save, then refresh the page
The last remaining set is not getting removed from the repeater
Have tried re-ordering and removing multiple sets at once, with the same result. If multiple items get removed at once (both items one and two are removed at the same time therefore emptying the repeater), upon refresh they will both still be in the repeater.
Expected result:
When all items have been removed, no matter whether I delete one or many, this should save in the database and leave an empty repeater.
Actual result:
Repeater seems as if it has saved, but upon refresh the final set that was deleted to leave the repeater empty has not been removed.
The text was updated successfully, but these errors were encountered:
I'd also like to add that this was specifically tested using a repeater as a template field. This hasn't been tested AFAIK with a repeater as a content type field.
Tested with a "normal" repeater inside contenttypes.yml and the result of removing the final set is that an empty array is produced, which is the expected result.
Therefore it does seem like a "repeaters in templates" issue.
rossriley
changed the title
[BUG] – Repeaters not allowing you to remove last set
[BUG] – Repeaters in Templatefields not allowing you to remove last set
Jul 8, 2017
Details
Reproduction
Bug summary:
Specifics:
Steps to reproduce:
Code for the repeater itself:
Have tried re-ordering and removing multiple sets at once, with the same result. If multiple items get removed at once (both items one and two are removed at the same time therefore emptying the repeater), upon refresh they will both still be in the repeater.
Expected result:
Actual result:
The text was updated successfully, but these errors were encountered: