Skip to content

Commit

Permalink
allow input type=number to also be magic
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Oct 23, 2012
1 parent 922d986 commit 9a9ac6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -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))
Expand Down

0 comments on commit 9a9ac6f

Please sign in to comment.