Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter LukeBR

    (@lukebr)

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    So the array index count is never properly clearing itself out?

    Could you provide a copy of the code you’re using for this metabox?

    Thread Starter LukeBR

    (@lukebr)

    Thread Starter LukeBR

    (@lukebr)

    it seems that the delete is only cleaning the data, but still the same amount or is creating a void. I think that problem in delete the group item , sorry my english

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hrm. Trying to recreate this but not succeeding. The serialized data that we’re storing with the code you provided is updating itself properly each time in my tests. Not getting any lingering repeatable fields after deleting one and clicking to update the post.

    Am I not taking the right steps by chance? I know I changed the code above to match adding to the post post type instead of the slideshow, but that shouldn’t be an influence on things.

    Thread Starter LukeBR

    (@lukebr)

    I will collect more information about the error and Then show! but I believe you understand the problem!

    Thread Starter LukeBR

    (@lukebr)

    I’m using version 2.0.2:
    looks bank’s perspective before and after deleting the 2 of 3 item in the group, it seems that problem only happens to the middle item:
    http://www.codeshare.io/K7bTa

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Let’s get the steps taken outlined quick.

    1. Add a new post.
    2. Add the values for the first slide.
    3. Add the values for the second slide.
    4. Add the values for the third slide.
    5. Save post.
    6. Delete values for the second slide.
    7. Save Post.
    8. Find three slides still and slightly corrupted serialized data

    Sound right?

    Thread Starter LukeBR

    (@lukebr)

    yes, but, in case the item 2 back just a small part of the data, not corrupted serialized data. but not delete complete item.

    Thread Starter LukeBR

    (@lukebr)

    you recreate error ?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I was finally able to recreate once I tried with the # you’re using with the url fields.

    Asked our lead dev for CMB2 and he suggested that it’s probably the esc_url function, and asked if you could try adding the following to your url field in the group and see if it still happens afterwards.

    'escape_cb' => false
    Thread Starter LukeBR

    (@lukebr)

    I did some more testing now, I think it is a matter of escape, changed all href = # to a link as http://google.com, http://facebook.com, and put

    cb_escape => false,
    cb_sanitaze => false

    what happens is that the item link 2 is not deleted, and the adjacent link is deleted

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Did you try it as “escape_cb” and “sanitize_cb” ? The order of the wording may be important for key reference in the arrays that are passed around by CMB2, and “cb_escape” is probably not valid.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘bug? problem with item delete the type group’ is closed to new replies.