Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1710

Allow reordering of foreign keys even with pulls/pushes

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.4.5
    • Affects Version/s: None
    • Component/s: None
    • None

      When there were pushes (or pulls) as well as elements being reordered,
      save would only push (or pull) elements. The changed order of the other
      elements were lost.

      With this change, checking is done to ensure that we only push when the
      new elements are at the end, and pull when the remaining element's order
      has not changed.

      Noticed that this behavior was not quite right when looking at the fix for
      mongoid/mongoidMONGOID-1706.

            Assignee:
            Unassigned Unassigned
            Reporter:
            robinst robinst
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: