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:
phpnut 2006-07-29 17:55:22 +00:00
parent e683b7090b
commit 943454d280

View file

@ -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;
}