mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding time to FormHelper::generateFields()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3318 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
e683b7090b
commit
943454d280
1 changed files with 6 additions and 0 deletions
|
@ -483,6 +483,12 @@ class FormHelper extends Helper {
|
|||
}
|
||||
$strFormFields = $strFormFields . $this->generateDateTime($field['tagName'], $field['prompt'], '', '', '', '', $field['selected']);
|
||||
break;
|
||||
case "time":
|
||||
if (!isset($field['selected'])) {
|
||||
$field['selected'] = null;
|
||||
}
|
||||
$strFormFields = $strFormFields . $this->generateTime($field['tagName'], $field['prompt'], '', '', '', '', $field['selected']);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue