dropDownList encodeSpaces for subgroups

fixes #4105, close #4376
This commit is contained in:
Misbahul D Munir
2014-07-20 22:16:32 +07:00
committed by Carsten Brandt
parent 6e6005b148
commit 6a6caf717b
2 changed files with 2 additions and 1 deletions

View File

@ -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 {