- fixed is_selected function

This commit is contained in:
nikitasinelnikov
2019-03-27 10:29:46 +02:00
parent 24a2d2f5ad
commit 3e241865d5
2 changed files with 41 additions and 39 deletions
+5 -3
View File
@@ -908,9 +908,11 @@ 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;
}