Skip to content

unlinkInverse: avoid splicing when index is undefined #190

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

Merged
merged 1 commit into from
Sep 26, 2014

Conversation

chieffancypants
Copy link
Contributor

When I delete a resource, angular-data is also removing references to/from unrelated resources during _unlinkInverse. In these cases, index was undefined, which is effectively treated as 0 by splice and would remove an unrelated item.

jmdobry added a commit that referenced this pull request Sep 26, 2014
unlinkInverse: avoid splicing when index is undefined
@jmdobry jmdobry merged commit 3b5f589 into js-data:master Sep 26, 2014
@jmdobry
Copy link
Member

jmdobry commented Sep 26, 2014

Oops, I forgot to check that an index had been found. Merged.

@chieffancypants chieffancypants deleted the unlinkInverse-bug branch September 26, 2014 21:58
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.

2 participants