mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
a58f675ab9
commit
3fdfdfb1cb
1 changed files with 3 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue