wpmetabox / meta-box

The best plugin for WordPress custom fields and custom meta boxes
https://metabox.io
1.19k stars 422 forks source link

OSM field + Group clone issue #1272

Open cedric-dagherir opened 6 years ago

cedric-dagherir commented 6 years ago

Hi,

I have a problem in back end with the OSM field +address field in a clonable group :

WP : 4.9.8 Metabox : 4.15.4 Metabox Group : 1.2.16

My custom metas :

$meta_boxes[] = array(
        'id'       => 'metas_geoloc',
        'title'    => 'Localisation',
        'post_types'    => array('actions'),
        'context'  => 'normal',
        'priority' => 'high',
        'fields' => array(          
          array(
            'name'=>'Résumé adresse',
            'id'=> $prefix . 'resume_adresse',
            'type' => 'text',
            'desc' => 'Affiché sur la home à la place de l\'adresse du lieu de rencontre.'
          ),
          array(
            'name' => 'Lieux de rencontre',
            'id' => $prefix . 'lieux',
            'type' => 'group',
            'clone'  => true,
            'add_button' => '+ Ajouter un lieu',
            'sort_clone' => true,
            'fields' => array(
              array(
                'name'=>'Adresse',
                'id'=> $prefix . 'adresse',
                'type' => 'text',
              ),         
              array(
                'name'=>'Géolocalisation',
                'id'=> $prefix . 'geoloc',
                'type' => 'osm',
                'std' => '47.218371,-1.553621',
                'address_field' =>  $prefix . 'adresse',
              ),  
            )
          ),

        )        
    );

Do you need more information ? Can you reproduce this issue ?

technique-onpc commented 6 years ago

Hi,

Same problem with OSM + Group,

WP: 4.9.8 Metabox: 4.15.6 Metabox Group: 1.2.3

Screenshot : metabox-multiple-maps