Skip to content

Commit

Permalink
Fix FormHelper::input ignoring value option.
Browse files Browse the repository at this point in the history
  • Loading branch information
yskkin committed Jul 21, 2015
1 parent 0e07755 commit 5de9b02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -1086,13 +1086,13 @@ protected function _getInput($args) {
unset($options['options']);
return $this->select($fieldName, $list, $options);
case 'time':
$options['value'] = $selected;
$options += array('value' => $selected);
return $this->dateTime($fieldName, null, $timeFormat, $options);
case 'date':
$options['value'] = $selected;
$options += array('value' => $selected);
return $this->dateTime($fieldName, $dateFormat, null, $options);
case 'datetime':
$options['value'] = $selected;
$options += array('value' => $selected);
return $this->dateTime($fieldName, $dateFormat, $timeFormat, $options);
case 'textarea':
return $this->textarea($fieldName, $options + array('cols' => '30', 'rows' => '6'));
Expand Down

0 comments on commit 5de9b02

Please sign in to comment.