|
|
@@ -1016,7 +1016,7 @@ class FormHelper extends AppHelper {
|
|
|
!array_key_exists('maxlength', $options) &&
|
|
|
isset($fieldDef['length']) &&
|
|
|
is_scalar($fieldDef['length']) &&
|
|
|
- $options['type'] !== 'select'
|
|
|
+ $options['type'] !== 'select'
|
|
|
);
|
|
|
if ($autoLength && $options['type'] == 'text') {
|
|
|
$options['maxlength'] = $fieldDef['length'];
|