cloneable oEmbed fields doesn't save empty data as "NULL"

Support MB Custom Table cloneable oEmbed fields doesn't save empty data as "NULL"

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #9109
    foundbutlostfoundbutlost
    Participant

    cloneable oEmbed fields doesn't treat empty data as "NULL" when saving it both on core table and custom table. instead, it's saving "a:0:{}" value.

    Also on meta builder please add 1 field where we can insert our custom table name and also include it when user need to export the code (you can show it only when user has the Meta Custom Table extension activated).
    "'storage_type' => 'custom_table','table' => $input[usr_table_name]".

    Thanks, great framework so far!

    #9110
    foundbutlostfoundbutlost
    Participant

    ah it seems it affected all field type. idk but i tried oEmbed and text, both have the same problem when "Clone" option set to TRUE

    #9126
    Anh TranAnh Tran
    Keymaster

    Hi,

    When a field is cloneable, the value should be always an array. That's why the plugin stores value as a:0:{} - the serialized of empty array.

    I'll add more options to the MB Builder extension.

    #9140
    foundbutlostfoundbutlost
    Participant

    But does it makes more sense if you just put a null value because we currently have nothing to fill on it instead of putting an empty array. it more easier to sort a null value in case someday we want to find out and listed which row has null value rather than search it using this "a:0:{}"

    I'll waiting for the extension update, thank you!

    #9148
    Anh TranAnh Tran
    Keymaster

    I got it. Let me see if I can make the change.

    #9254
    foundbutlostfoundbutlost
    Participant

    Any update on this, Anh?

    Thank you!

    #9426
    Anh TranAnh Tran
    Keymaster

    Hi again,

    We've just updated the extension with able to save NULL value to the table. Now if the value is an empty string or empty array, it will be saved as NULL. Please update the extension and let us know how it goes.

    #9433
    foundbutlostfoundbutlost
    Participant

    Hi, i didnt see any update on my account dashboard. you talking about MB Custom Table Extension right?

    #9434
    Anh TranAnh Tran
    Keymaster

    Sorry, can you try again now?

    #9435
    foundbutlostfoundbutlost
    Participant

    I think it's all good and working fine now. Thank you for the update and thread closed!

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘cloneable oEmbed fields doesn't save empty data as "NULL"’ is closed to new replies.