| @@ -222,12 +222,14 @@ | ||
| 222 | 222 | * |
| 223 | 223 | * @return void |
| 224 | 224 | */ |
| 225 | 225 | protected function generate_displayed_value_for_field_type( $atts ) { |
| 226 | - if ( ! FrmAppHelper::is_empty_value( $this->displayed_value, '' ) ) { | |
| 227 | - $field_obj = FrmFieldFactory::get_field_object( $this->field ); | |
| 228 | - $this->displayed_value = $field_obj->get_display_value( $this->displayed_value, $atts ); | |
| 226 | + if ( FrmAppHelper::is_empty_value( $this->displayed_value, '' ) ) { | |
| 227 | + return; | |
| 229 | 228 | } |
| 229 | + | |
| 230 | + $field_obj = FrmFieldFactory::get_field_object( $this->field ); | |
| 231 | + $this->displayed_value = $field_obj->get_display_value( $this->displayed_value, $atts ); | |
| 230 | 232 | } |
| 231 | 233 | |
| 232 | 234 | /** |
| 233 | 235 | * Filter the displayed_value property |
| @@ -276,9 +278,9 @@ | ||
| 276 | 278 | $field_type = FrmField::get_field_type( $this->field ); |
| 277 | 279 | FrmFieldsHelper::prepare_field_value( $this->saved_value, $field_type ); |
| 278 | 280 | } |
| 279 | 281 | |
| 280 | - if ( is_array( $this->saved_value ) && empty( $this->saved_value ) ) { | |
| 282 | + if ( is_array( $this->saved_value ) && ! $this->saved_value ) { | |
| 281 | 283 | $this->saved_value = ''; |
| 282 | 284 | } |
| 283 | 285 | } |
| 284 | 286 | } |