mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00

committed by
Carsten Brandt

parent
6e6005b148
commit
6a6caf717b
@ -1557,7 +1557,7 @@ class BaseHtml
|
||||
if (is_array($value)) {
|
||||
$groupAttrs = isset($groups[$key]) ? $groups[$key] : [];
|
||||
$groupAttrs['label'] = $key;
|
||||
$attrs = ['options' => $options, 'groups' => $groups];
|
||||
$attrs = ['options' => $options, 'groups' => $groups, 'encodeSpaces' => $encodeSpaces];
|
||||
$content = static::renderSelectOptions($selection, $value, $attrs);
|
||||
$lines[] = static::tag('optgroup', "\n" . $content . "\n", $groupAttrs);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user