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',
),
),
),
)
);