Fix for fields shipping_country and billing_country.

Issue: billing_country not working in Default Profile anymore.
Link: https://secure.helpscout.net/conversation/907381731/32251?folderId=1651531
This commit is contained in:
denisbaranov
2019-07-19 15:10:23 +03:00
parent d535b63eb1
commit 90bef79a4b
2 changed files with 18 additions and 1 deletions
@@ -53,6 +53,11 @@ if ( ! class_exists( 'um\admin\core\Admin_Builder' ) ) {
$validate = $field_attr['validate'];
foreach ( $validate as $post_input => $arr ) {
// 'billing_country' and 'shipping_country'
if( $post_input === '_options' && isset( $array[ 'post' ][ '_metakey' ] ) && in_array( $array[ 'post' ][ '_metakey' ], array( 'billing_country', 'shipping_country' ) ) ) {
continue;
}
$mode = $arr['mode'];
switch ( $mode ) {