Custom Fields
Re-Envisioned
Support Meta Box Group Meta Box Group Clone with sort_clone issue, re-positioned group is replaced

  • Creator
    Topic
  • #1167
    bucketpress
    Participant

    This is the same as github issue #644. But it was left opened without a single reply/update.

    I am using MetaBox with Group extension. I have registered a metabox with one group containing two sub fields - 1 file_input field and 1 text field. I have specified clone=>true and sort_clone=>true to the group.

    This is the issue: after I have sorted a group's position, updated the post, and then cloned a new group, updated the post, the latest cloned group replaces the group that was sorted. i.e the group that was sorted gets deleted, and in it's place I see the latest cloned group.

    I did a few tests. In every test case, after I cloned a group, I updated the post. Also after I dragged and sorted a group, I updated the post.

    1st test:
    1st group, update post, cloned 2nd group, update post. cloned 3rd Group,update post.
    At this point I moved the 3rd Group to the position of the 2nd Group such that the sequence is 1,3,2, and updated the post.
    Then I cloned the 4th group, updated the post and the result was this: 1,4,2.

    2nd test:
    1st group, update post, cloned 2nd group, update post. cloned 3rd Group, update post, cloned 4th Group, update post.
    At this point I moved the 4th Group to the position of the 3rd Group such that the sequence is 1,2,4,3 and updated the post.
    Then I cloned the 5th group, updated the post and the result was this: 1,2,5,3.

    2rd test:
    1st group, update post, cloned 2nd group, update post. cloned 3rd Group, update post, cloned 4th Group, update post, cloned 5th Group, update post
    At this point I moved the 5th Group to the position of the 3rd Group such that the sequence is 1,2,5,3,4 and updated the post.
    Then I cloned the 6th group, updated the post and the result was this: 1,2,6,3,4.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #1172
    Anh Tran
    Keymaster

    Hi bucketpress, I'm checking this bug and will add a new fix asap.

    #1173
    Anh Tran
    Keymaster

    Just committed a fix for this bug. Can you please try the latest version on Github?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Meta Box Group Clone with sort_clone issue, re-positioned group is replaced’ is closed to new replies.