From 3fdfdfb1cbb3199878555448a9a03dd3d8f23647 Mon Sep 17 00:00:00 2001 From: gwoo Date: Thu, 15 Nov 2007 07:18:25 +0000 Subject: [PATCH] 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 --- cake/libs/view/helpers/form.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cake/libs/view/helpers/form.php b/cake/libs/view/helpers/form.php index 05b1a8172..d7128a650 100644 --- a/cake/libs/view/helpers/form.php +++ b/cake/libs/view/helpers/form.php @@ -521,7 +521,9 @@ class FormHelper extends AppHelper { if($this->model() === $this->field()) { $options['type'] = 'select'; - $options['multiple'] = 'multiple'; + if (!isset($options['multiple'])) { + $options['multiple'] = 'multiple'; + } } }