Browse Source

BaseHtml::activeDropDownList() fix for 'multiple' mode

tags/2.0.0-beta
Alexander Kochetov 11 years ago
parent
commit
bbc0226627
  1. 3
      framework/helpers/BaseHtml.php

3
framework/helpers/BaseHtml.php

@ -1222,6 +1222,9 @@ class BaseHtml
*/
public static function activeDropDownList($model, $attribute, $items, $options = [])
{
if (!empty($options['multiple'])) {
return static::activeListBox($model, $attribute, $items, $options);
}
$name = isset($options['name']) ? $options['name'] : static::getInputName($model, $attribute);
$selection = static::getAttributeValue($model, $attribute);
if (!array_key_exists('id', $options)) {

Loading…
Cancel
Save