Custom Fields
Re-Envisioned
Support MB Custom Table MB Custom Table and MB Settings Plugin Conflict

This topic contains 1 reply, has 2 voices, and was last updated by  Truong Giang 1 year, 4 months ago.

  • Creator
    Topic
  • #8520

    andrewrhyand
    Participant

    I’ve successfully created a new table using MB Custom Tables plugin, and the fields work in the post edit screen as intended.

    The error occurs when saving field data using the MB Settings plugin from an options page. Using a Query Monitor plugin I can see 2 methods are firing from the RWMB_Table_Storage class on an options page save.

    RWMB_Table_Storage->row_exists with query:
    SELECT COUNT(*)
    FROM wp_bb_product_details
    WHERE ID = 0

    RWMB_Table_Storage->update_row with query:
    UPDATE wp_bb_product_details
    SET
    WHERE ID = 0

    The ->row_exists check makes some sense, but should fail as “WHERE ID = 0″ shouldn’t exists… but it does. I know this because after a MB Settings page save, I can see a new row was created in the database with the ID 0 in the custom table.

    I can’t see how this should be an expected behavior. I’m I missing something?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #8522

    Truong Giang
    Participant

    Hi there,

    Let us check this problem for you.

    Thank you.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.