-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Reparenting child leaves gap in source list in rails 5 #194
Comments
Thanks for that @thefloweringash :) At a glance, it's probably to do with the hacky way we swap the changed attributes with their original values in order to remove the item from the first list when the scope changes:
Are you able to do some testing around that and let me know? I don't think there'd be much harm is repeating the contents of |
@thefloweringash, can you test again on master? I've rewritten that part of the code now to fix a problem with Rails 5. |
This resolves the issue for me. Tested against revision a3b1d4e. Thanks! |
That's great to hear! :) You're welcome :) |
When moving an item from one list to another list by assigning to the list relation, the positions of the source list aren't updated. Tested under
acts_as_list
d605d17f6966c03d4e547fc43f6c52c774dde706
and version0.7.2
.Test case:
Under rails 4.2.6 I see
While under rails 5.0.0beta3 I see
The text was updated successfully, but these errors were encountered: