- fix the metakey in the admin builder if the metakey not exist

This commit is contained in:
andrewshuba
2019-08-12 15:49:50 +03:00
parent 1bf8d009ea
commit d2701c6f17
+1 -1
View File
@@ -150,7 +150,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Builder' ) ) {
}
// set unique meta key
if ( in_array( $field_type, $fields_without_metakey ) && ! isset( $array['post']['_metakey'] ) ) {
if ( in_array( $field_type, $fields_without_metakey ) || ! isset( $array['post']['_metakey'] ) ) {
$array['post']['_metakey'] = "um_{$field_type}_{$form_id}_{$count}";
}