mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Fix FormHelper::input ignoring value option.
This commit is contained in:
parent
0e0775559c
commit
5de9b022ea
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…
Add table
Reference in a new issue