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

Fix for saving of Instance.extra fields. #312

Merged
merged 1 commit into from
Aug 26, 2013

Conversation

kvanwagenen
Copy link
Contributor

When an extra value in a to-many relationship table has been changed, the saving logic breaks in the instance class. This fix worked for me. In the snippet I changed, opts.extra_info.id is an array containing the column names of each of the extra fields that need to be saved. I changed it so that instead of comparing the iterator variable i to the id array (which didn't make sense), you instead compare to the length of the array.

@notheotherben
Copy link
Collaborator

Ah, well spotted. Looks good to merge, let's see what @dresende has to say - but good with me.

@dresende
Copy link
Owner

Thank you! :)

dresende added a commit that referenced this pull request Aug 26, 2013
Fix for saving of Instance.extra fields.
@dresende dresende merged commit 1996236 into dresende:master Aug 26, 2013
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.

3 participants