Skip to content

duplicate collection index if you delete an item and then add a new one #1106

@ychadwick

Description

@ychadwick

When using the collection widget, with the mopaboostrap-collection.js you can end up with duplicate indexes which results in either errors when processing the form values, or data going missing.

Easy to reproduce:

  1. Start with a collection of 3 items
  2. Delete the first item
  3. Add a new item

You will see that the second and newly created third item will have the same index of [2].

They only way to use the widget in it's current form is to add all the new items you need, and then delete the ones you don't just before saving
screen shot 2015-08-26 at 14 50 13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions