mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
allow input type=number to also be magic
This commit is contained in:
parent
922d9865fa
commit
9a9ac6f3a7
1 changed files with 1 additions and 1 deletions
|
@ -994,7 +994,7 @@ class FormHelper extends AppHelper {
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(!isset($options['options']) && in_array($options['type'], $types)) ||
|
(!isset($options['options']) && in_array($options['type'], $types)) ||
|
||||||
(isset($magicType) && $options['type'] == 'text')
|
(isset($magicType) && in_array($options['type'], array('text', 'number')))
|
||||||
) {
|
) {
|
||||||
$varName = Inflector::variable(
|
$varName = Inflector::variable(
|
||||||
Inflector::pluralize(preg_replace('/_id$/', '', $fieldKey))
|
Inflector::pluralize(preg_replace('/_id$/', '', $fieldKey))
|
||||||
|
|
Loading…
Add table
Reference in a new issue