Problem when cloning GROUP with IMAGE_ADVANCED

Support MB Group Problem when cloning GROUP with IMAGE_ADVANCED

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8134
    Teia Local StudioTeia Local Studio
    Participant

    Hey guys!
    Just came across a pretty simple problem.
    I did search the forums and was not able to find anything related.

    MetaBox 4.13.0
    MetaBox Group 1.2.12
    SettingsPage 1.3.2

    I have a simple metabox with IMAGE_ADVANCED inside a cloneable group running on my SETTINGS PAGE.
    When I add images to the first GROUP, save, and then clone it,
    its copy carries over the previous images and a second button "add images",
    but they are simple "ghosts", they are not really there.

    Other filled fields are not carried over to the copy when cloned.
    It is just the images...

    First group, with 3 images:
    https://i.imgur.com/avtORYy.png

    After saving the settings page, and pressing "NEW GROUP":
    The regular ADD MEDIA button is OK.
    But below it we can see cloned images and a cloned button, all ghosts...
    https://i.imgur.com/8wM5hRK.png

    If I add a new image using the working button, everything works, but the ghosts are still there:
    https://i.imgur.com/joyzVXs.png

    When I save the settings again, the ghosts are gone.
    Everything is fine.
    https://i.imgur.com/ZZr0wyP.png

    CODE:

    $meta_boxes[] = array(
    	'id'             => 'institucional',
    	'title'          => 'Clientes',
    	'settings_pages' => 'painel-inst',
    	'tab'            => 'aba-inst',
    	'fields' => array(
    		
    		array(
    			'id'     => 'grupo-de-logos',
    			'type'   => 'group',
    			'clone'  => true,
    			'sort_clone' => true,
    			'max_clone' => 5,
    			'add_button' => '+ Novo Grupo',
    			'fields' => array(
    				
    				array(
    					'name' => 'Imagens/Logos',
    					'id' => 'logos',
    					'type' => 'image_advanced',
    				),
    								
    			),
    		),
    		
    	)
    );
    #8135
    Teia Local StudioTeia Local Studio
    Participant

    UPDATE!!!

    Just found out that this problem DOES NOT OCCUR on META-BOX 4.12.5!
    It happens just on META-BOX 4.13.0!

    G.

    #8144
    Anh TranAnh Tran
    Keymaster

    Hi,

    I've fixed it on Github. Can you please try that?

    #8145
    Teia Local StudioTeia Local Studio
    Participant

    PERFECT! It's fixed indeed!
    Thank you, Ahn!
    So much.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Problem when cloning GROUP with IMAGE_ADVANCED’ is closed to new replies.