| @@ -9,8 +9,9 @@ | ||
| 9 | 9 | class FrmFieldSelect extends FrmFieldType { |
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * @var string |
| 13 | + * | |
| 13 | 14 | * @since 3.0 |
| 14 | 15 | */ |
| 15 | 16 | protected $type = 'select'; |
| 16 | 17 | |
| @@ -15,8 +16,9 @@ | ||
| 15 | 16 | protected $type = 'select'; |
| 16 | 17 | |
| 17 | 18 | /** |
| 18 | 19 | * @var bool |
| 20 | + * | |
| 19 | 21 | * @since 3.0 |
| 20 | 22 | */ |
| 21 | 23 | protected $holds_email_values = true; |
| 22 | 24 | |
| @@ -30,8 +32,9 @@ | ||
| 30 | 32 | protected function field_settings_for_type() { |
| 31 | 33 | return array( |
| 32 | 34 | 'clear_on_focus' => true, |
| 33 | 35 | 'size' => true, |
| 36 | + 'invalid' => true, | |
| 34 | 37 | ); |
| 35 | 38 | } |
| 36 | 39 | |
| 37 | 40 | /** |
| @@ -51,8 +54,11 @@ | ||
| 51 | 54 | /** |
| 52 | 55 | * Get the type of field being displayed. |
| 53 | 56 | * |
| 54 | 57 | * @since 4.02.01 |
| 58 | + * | |
| 59 | + * @param array|object $field | |
| 60 | + * | |
| 55 | 61 | * @return array |
| 56 | 62 | */ |
| 57 | 63 | public function displayed_field_type( $field ) { |
| 58 | 64 | return array( |
| @@ -62,9 +68,9 @@ | ||
| 62 | 68 | |
| 63 | 69 | /** |
| 64 | 70 | * @since 4.0 |
| 65 | 71 | * |
| 66 | - * @param array $args - Includes 'field', 'display', and 'values' | |
| 72 | + * @param array $args Includes 'field', 'display', and 'values'. | |
| 67 | 73 | * |
| 68 | 74 | * @return void |
| 69 | 75 | */ |
| 70 | 76 | public function show_extra_field_choices( $args ) { |
| @@ -86,9 +92,9 @@ | ||
| 86 | 92 | } |
| 87 | 93 | |
| 88 | 94 | protected function prepare_import_value( $value, $atts ) { |
| 89 | 95 | if ( FrmField::is_option_true( $this->field, 'multiple' ) ) { |
| 90 | - $value = $this->get_multi_opts_for_import( $value ); | |
| 96 | + return $this->get_multi_opts_for_import( $value ); | |
| 91 | 97 | } |
| 92 | 98 | |
| 93 | 99 | return $value; |
| 94 | 100 | } |