Skip to content

Fix Issue - reset a single column when orderable_scope changed instead of removing it from list#30

Merged
pyromaniac merged 2 commits intomongoid:masterfrom
Bharat311:f-multi-scope-bug
Sep 1, 2014
Merged

Fix Issue - reset a single column when orderable_scope changed instead of removing it from list#30
pyromaniac merged 2 commits intomongoid:masterfrom
Bharat311:f-multi-scope-bug

Conversation

@Bharat311
Copy link
Copy Markdown
Contributor

If we have a model having multiple columns, both scoped differently, then if the scope of one position field is changed it currently removes the element from the list, resulting in changing the position of the other position fields as well.

However it should not be such and set the position for that particular column only to nil.

The added spec explains in detail the issue.

pyromaniac added a commit that referenced this pull request Sep 1, 2014
Fix Issue - reset a single column when orderable_scope changed instead of removing it from list
@pyromaniac pyromaniac merged commit 7cb7675 into mongoid:master Sep 1, 2014
@pyromaniac
Copy link
Copy Markdown
Collaborator

Important patch. Thank you!

@Bharat311 Bharat311 deleted the f-multi-scope-bug branch September 1, 2014 11:01
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