updating FormHelper::input() to allow multiple checkbox

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5994 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-11-15 07:18:25 +00:00
parent a58f675ab9
commit 3fdfdfb1cb

View file

@ -521,9 +521,11 @@ class FormHelper extends AppHelper {
if($this->model() === $this->field()) {
$options['type'] = 'select';
if (!isset($options['multiple'])) {
$options['multiple'] = 'multiple';
}
}
}
if (!isset($options['options']) && in_array($options['type'], array('text', 'radio', 'select'))) {
$view =& ClassRegistry::getObject('view');