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

Fixes collection name deciding script causing item overwriting #2788

Merged
merged 1 commit into from
May 29, 2015
Merged

Fixes collection name deciding script causing item overwriting #2788

merged 1 commit into from
May 29, 2015

Conversation

Amunak
Copy link
Contributor

@Amunak Amunak commented May 29, 2015

Getting an item's name from collection's children count is unreliable and caused data loss when items got deleted and shuffled around or when there were other child elements in the collection element. This fixes that issue by actually checking if the items are present.

Inspired by Bootstrap's solution.

It's still very fast even with thousands of items in a collection.

Getting an item's name from collection's children count is unreliable and caused data loss when items got deleted and shuffled around or when there was some other element in the collection element. This fixes that issue by actually checking if the items are present.
pjedrzejewski pushed a commit that referenced this pull request May 29, 2015
Fixes collection name deciding script causing item overwriting
@pjedrzejewski pjedrzejewski merged commit 41259ea into Sylius:master May 29, 2015
@pjedrzejewski
Copy link
Member

Really nice, thank you very much @Amunak! 👍

@Amunak Amunak deleted the collection-name-fix branch June 1, 2015 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants