Index: trunk/extensions/SemanticForms/includes/forminputs/SF_TextInput.php |
— | — | @@ -89,9 +89,12 @@ |
90 | 90 | $input_id = "input_$sfgFieldNum"; |
91 | 91 | // Set size based on pre-set size, or field type - if field |
92 | 92 | // type is set, possibly add validation too. |
| 93 | + // (This special handling should only be done if the field |
| 94 | + // holds a single value, not a list of values.) |
93 | 95 | $size = 35; |
94 | 96 | $inputType = ''; |
95 | | - if ( array_key_exists( 'field_type', $other_args ) ) { |
| 97 | + if ( array_key_exists( 'field_type', $other_args ) && |
| 98 | + !array_key_exists( 'is_list', $other_args ) ) { |
96 | 99 | if ( $other_args['field_type'] == 'number' ) { |
97 | 100 | $size = 10; |
98 | 101 | $inputType = 'number'; |