From b06caa297bc0ded3229da0ba8f3e5aff7b26beac Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sat, 16 Nov 2013 08:00:39 -0500 Subject: [PATCH] Fixes #1206. --- framework/yii/helpers/BaseHtml.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/yii/helpers/BaseHtml.php b/framework/yii/helpers/BaseHtml.php index 71ad9ea..64b070b 100644 --- a/framework/yii/helpers/BaseHtml.php +++ b/framework/yii/helpers/BaseHtml.php @@ -653,6 +653,9 @@ class BaseHtml */ public static function dropDownList($name, $selection = null, $items = [], $options = []) { + if (!empty($options['multiple'])) { + return static::listBox($name, $selection, $items, $options); + } $options['name'] = $name; $selectOptions = static::renderSelectOptions($selection, $items, $options); return static::tag('select', "\n" . $selectOptions . "\n", $options);