mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 00:48:25 +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,7 +521,9 @@ class FormHelper extends AppHelper {
|
||||||
|
|
||||||
if($this->model() === $this->field()) {
|
if($this->model() === $this->field()) {
|
||||||
$options['type'] = 'select';
|
$options['type'] = 'select';
|
||||||
$options['multiple'] = 'multiple';
|
if (!isset($options['multiple'])) {
|
||||||
|
$options['multiple'] = 'multiple';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue