image_advanced data not stored as multiple rows in database anymore

Support MB Builder image_advanced data not stored as multiple rows in database anymoreResolved

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #46018

    Selecting mulitple images using image_advanced selector tool I see that the images are now stored as serialized in the database even if I use the "Clone as multiple" option. I am using 0 plugin so it cannot be a cause. I now must intercept get_post_meta to unserialize images arrays (no big deal but I have to change many occurences...

    #46025
    PeterPeter
    Moderator

    Hello,

    The field image_advanced still saves multiple images in multiple rows to the database.
    - If you enable the option cloneable and "clone as multiple", the field value will save an array of images per clone in the database.
    - If you disable the option "clone as multiple", all images will be saved in one row.

    I hope that makes sense.

    #46061

    Hello,
    Yes it does but still saves the data as serialized as I said.
    Thanks anyway

    #46074
    PeterPeter
    Moderator

    Hello,

    but still saves the data as serialized as I said

    Do you use the option cloneable for the image advanced field? If yes, the field value will be serialized in the database as it is.

    #46083

    Hello,
    Yes I use cloneable AND clone as Multiple AND sortable. But whatever I change does not make any difference in the database, it is saved as a single raw (serialized). Looks like 'clone as multiple' is not doing anything for me.
    But no problem, I just check if data is serialized before trying to use it... just an additional test, no big deal! But it used to worked before, that's why I was surprised to get screwed datas... I cannot say when it stopped working.
    Thanks

    #46084

    I stopped using the cloneable option. All is fine without it. Array is in multiple raws in the DB.
    Problem solved. Thx

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.