Edited lib/Cake/View/Helper/FormHelper.php via GitHub

This commit is contained in:
Maggion Emmanuel 2011-08-09 17:59:55 +03:00
parent cb5f57f0ed
commit 6cd89b0992

View file

@ -1073,9 +1073,7 @@ class FormHelper extends AppHelper {
$input = $this->textarea($fieldName, $options + array('cols' => '30', 'rows' => '6'));
break;
case 'url':
$options = $this->_initInputField($fieldName, $options);
$options['type'] = 'url';
$input = $this->Html->useTag('input', $options['name'], $options);
$input = $this->text($fieldName, array('type' => 'url') + $options);
break;
default:
$input = $this->{$type}($fieldName, $options);