diff --git a/lib/Cake/View/Helper/FormHelper.php b/lib/Cake/View/Helper/FormHelper.php index 301acaaec06..1fb8d7a81e4 100644 --- a/lib/Cake/View/Helper/FormHelper.php +++ b/lib/Cake/View/Helper/FormHelper.php @@ -994,7 +994,7 @@ public function input($fieldName, $options = array()) { 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))