Merge remote-tracking branch 'remotes/origin/fix_selected_options_by_default'

This commit is contained in:
nikitasinelnikov
2019-03-27 10:18:34 +02:00
+3 -3
View File
@@ -908,9 +908,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
if ( $field_value && $this->editing == true && is_array( $field_value ) && ( in_array( $value, $field_value ) || in_array( html_entity_decode( $value ), $field_value ) ) ) {
return true;
}
if ( $field_value == 0 && $this->editing == true && ! is_array( $field_value ) && $field_value == $value ) {
return true;
}
// if ( $field_value == 0 && $this->editing == true && ! is_array( $field_value ) && $field_value == $value ) {
// return true;
// }
if ( $field_value && $this->editing == true && ! is_array( $field_value ) && $field_value == $value ) {
return true;
}