BaseHtml::activeListBox() incorrect 'unselect' value fixed.

This commit is contained in:
Alexander Kochetov
2014-01-17 07:36:24 +04:00
parent bbc0226627
commit 0fe3245b26

View File

@ -1276,7 +1276,7 @@ class BaseHtml
$name = isset($options['name']) ? $options['name'] : static::getInputName($model, $attribute);
$selection = static::getAttributeValue($model, $attribute);
if (!array_key_exists('unselect', $options)) {
$options['unselect'] = '0';
$options['unselect'] = '';
}
if (!array_key_exists('id', $options)) {
$options['id'] = static::getInputId($model, $attribute);