Skip to content

Fix bug with deeply nested associations #9

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
Aug 23, 2017

Conversation

wadetandy
Copy link
Contributor

This fixes an issue when looking up/assigning a deep assocation that had
already been assigned to another object would assign an empty copy of
the object instead of the target. It was doing this because the return
value of the lookup wasn't being used, and instead the function was
inadvertently relying on the modification to the passed in parameter.

This fixes an issue when looking up/assigning a deep assocation that had
already been assigned to another object would assign an empty copy of
the object instead of the target.  It was doing this because the return
value of the lookup wasn't being used, and instead the function was
inadvertently relying on the modification to the passed in parameter.
@richmolj
Copy link
Contributor

Good change, appreciate the spec. Thanks! 👍

@richmolj
Copy link
Contributor

I believe Github's merge button is not working at this second but ready to go when it's fixed :)

@wadetandy wadetandy merged commit 874cee6 into jsonapi-suite:master Aug 23, 2017
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