Skip to content
Permalink
Browse files

Fix FormHelper::input ignoring value option.

  • Loading branch information...
yskkin committed Jul 21, 2015
1 parent 0e07755 commit 5de9b022ea268ab03d4797cb3ffb8e37ac875415
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/View/Helper/FormHelper.php
@@ -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'));

0 comments on commit 5de9b02

Please sign in to comment.
You can’t perform that action at this time.