Editing post don't save existing meta fields

Support MB Group Editing post don't save existing meta fields

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8516
    HazmiHazmi
    Participant

    Hi,

    i have a problem - don't know if it's a general problem or a problem only with this plugin with GROUP (COLUMNs) extension.

    I have this metabox:

    $meta_boxes[] = array(
    	'id' => 'mygallery',
    	'title' => __('Gallery',TEXTDOMAIN),
    	'pages' => array( '_products', '_other', '_other2' ),
    	'context' => 'normal',
    	'priority' => 'high',
    	'public' => true,
    	'show_in_nav_menus' => false,
    
    	'fields' => array(
    		array(
    			'id'    => "{$prefix}gallery_strip",
    			'type' => 'group',
    			'clone' => true,
    			'sort_clone' => true,
    			'fields' => array(
    				array(
    					'name' => __('Thumbnail',TEXTDOMAIN),
    					'id'   => "{$prefix}photo_thumb",
    					'type' => 'image_advanced',
    					'max_file_uploads' => 1,
    					'max_status' => false,
    					'columns' => 3
    				),
    				array(
    					'name' => __('Detail',TEXTDOMAIN),
    					'id'   => "{$prefix}photo_detail",
    					'type' => 'image_advanced',
    					'max_file_uploads' => 1,
    					'max_status' => false,
    					'columns' => 9
    				)
    			)
    		)
    	)
    
    );

    On my edit page a have more metaboxes - everything works fine.

    I noticed, that when i try to edit a single page, it takes a while, when all information in metaboxes are loaded and visible on the admin site - specially this metabox with photos (it takes for example 5-6 seconds to load).

    If i'm doing only a small edit and save the post before all metaboxes are completaly loaded, then these unloaded data are missing (empty).

    What can I do?

    #8546
    Anh TranAnh Tran
    Keymaster

    Hi Hazmi, sorry for the delay in replying.

    The image_advanced fields loads saved value via ajax request, so it takes a little time. Only when it's loaded, the field inputs are added. So, please don't update the post before it finishes loading (in that case all inputs are not fully added, and updating will make the post lost saved values).

    #8548
    HazmiHazmi
    Participant

    Hi,

    this is a problem for my clients. They are making a changes with post and don't wait until something is finished loading (the metabox with images is collapsible/hidden, because there are others metaboxes, that are more important then this with images, where client usually don't make changes).

    So this is a normal behaviour or a quick tip for solution?

    #8556
    Anh TranAnh Tran
    Keymaster

    This is the default behavior of the plugin. And unfortunately, we have to follow that 🙁

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Editing post don't save existing meta fields’ is closed to new replies.