mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
added field type "time" sothat no "maxlength" attribute is set for
the text-input element. This is neccessary when a "length" is specified for a time-database-field. This length dictates the amount of decimal digits, eg. milliseconds, and not the overall character size.
This commit is contained in:
parent
be35880b2f
commit
40b812e391
1 changed files with 1 additions and 0 deletions
|
@ -1309,6 +1309,7 @@ class FormHelper extends AppHelper {
|
|||
is_scalar($fieldDef['length']) &&
|
||||
$fieldDef['length'] < 1000000 &&
|
||||
$fieldDef['type'] !== 'decimal' &&
|
||||
$fieldDef['type'] !== 'time' &&
|
||||
$options['type'] !== 'select'
|
||||
);
|
||||
if ($autoLength &&
|
||||
|
|
Loading…
Reference in a new issue