allow input type=number to also be magic

This commit is contained in:
euromark 2012-10-23 13:43:48 +02:00
parent 922d9865fa
commit 9a9ac6f3a7

View file

@ -994,7 +994,7 @@ class FormHelper extends AppHelper {
if (
(!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(
Inflector::pluralize(preg_replace('/_id$/', '', $fieldKey))