Browse Source

Fixes #1206.

tags/2.0.0-alpha
Qiang Xue 11 years ago
parent
commit
b06caa297b
  1. 3
      framework/yii/helpers/BaseHtml.php

3
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);

Loading…
Cancel
Save