mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Merge pull request #5980 from cakephp/issue-5977
Don't generate maxlength properties for decimal columns.
This commit is contained in:
commit
01d988fa77
2 changed files with 1 additions and 1 deletions
|
@ -782,7 +782,6 @@ class FormHelperTest extends CakeTestCase {
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'name' => 'data[ValidateUser][cost_decimal]',
|
'name' => 'data[ValidateUser][cost_decimal]',
|
||||||
'id' => 'ValidateUserCostDecimal',
|
'id' => 'ValidateUserCostDecimal',
|
||||||
'maxlength' => 6,
|
|
||||||
)),
|
)),
|
||||||
'/div'
|
'/div'
|
||||||
);
|
);
|
||||||
|
|
|
@ -1287,6 +1287,7 @@ class FormHelper extends AppHelper {
|
||||||
isset($fieldDef['length']) &&
|
isset($fieldDef['length']) &&
|
||||||
is_scalar($fieldDef['length']) &&
|
is_scalar($fieldDef['length']) &&
|
||||||
$fieldDef['length'] < 1000000 &&
|
$fieldDef['length'] < 1000000 &&
|
||||||
|
$fieldDef['type'] !== 'decimal' &&
|
||||||
$options['type'] !== 'select'
|
$options['type'] !== 'select'
|
||||||
);
|
);
|
||||||
if ($autoLength &&
|
if ($autoLength &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue