Groups revisions don't work

Support MB Revision Groups revisions don't work

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #9409
    Cereal ConceptCereal Concept
    Participant

    Hello !

    I'm using the following plugins :

    Meta Box 4.14.5
    MB Revisions 1.0.1
    MB Group 1.2.13

    revision is set to true for the metabox but the group field but nothing is shown in the revisions page.
    It works with non-group fields.

    Is this a known bug or I'm I doing it wrong ?
    Thanks in advance,

    Johann

    #9413
    Anh TranAnh Tran
    Keymaster

    Thanks for letting us know. Let me check and fix it.

    #9436
    Truong GiangTruong Giang
    Participant

    Can you give me the code you use to register meta box?
    Thanks.

    #9811
    Cereal ConceptCereal Concept
    Participant

    Hi !
    Thanks for your replies !
    Sorry for the delay I missed the notification

    Here is the code used to register the meta box with revision enabled :

    $meta_boxes[] = array(
      'revision' => true,
      'id'         => 'noussuite-blocs',
      'title'      => __( 'Les différents blocs', 'purple' ),
      'post_types' => array( 'page' ),
      'autosave'   => true,
      'fields'     => array(
    
        // Blocs
        array(
          'name'  => esc_html__( 'Blocs', 'langdomain' ),
          'id'    => "{$prefix}group-blocs",
          'type'  => 'group',
          'add_button' => 'Ajouter un bloc',
          'collapsible' => true,
          'group_title' => array( 'field' => 'cc_text-titre' ),
          'clone' => true,
          'sort_clone' => true,
          'fields'   => array(
            // Titre
            array(
              'name'  => esc_html__( 'Titre', 'langdomain' ),
              'id'    => "{$prefix}text-titre",
              'desc'  => esc_html__( 'Le titre du bloc', 'langdomain' ),
              'type'  => 'text',
            ),
    

    ...

    #9931
    Truong GiangTruong Giang
    Participant

    Hi there,

    Can you give me the full code? Or at least the code which problem occurs.
    Thanks!

    #10071
    Cereal ConceptCereal Concept
    Participant

    Hi !

    This is my full rwmb_meta_boxes filter function :

    https://pastebin.com/Qzn8XGvP

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