mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix FormHelper::input ignoring value option.
Signed-off-by: mark_story <mark@mark-story.com> Backport fixes from #7082 to 2.7
This commit is contained in:
parent
e25be3a47e
commit
00919c5f01
1 changed files with 3 additions and 3 deletions
|
@ -1086,13 +1086,13 @@ class FormHelper extends AppHelper {
|
|||
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'));
|
||||
|
|
Loading…
Reference in a new issue