Commit 1abd0ab4 by Kartik Visweswaran

Fix #3472: Configurable option to encode spaces in dropdowns

parent 0e40dfdd
...@@ -1553,7 +1553,8 @@ class BaseHtml ...@@ -1553,7 +1553,8 @@ class BaseHtml
$options = isset($tagOptions['options']) ? $tagOptions['options'] : []; $options = isset($tagOptions['options']) ? $tagOptions['options'] : [];
$groups = isset($tagOptions['groups']) ? $tagOptions['groups'] : []; $groups = isset($tagOptions['groups']) ? $tagOptions['groups'] : [];
unset($tagOptions['prompt'], $tagOptions['options'], $tagOptions['groups']); unset($tagOptions['prompt'], $tagOptions['options'], $tagOptions['groups']);
$options['encodeSpaces'] = ArrayHelper::getValue($options, 'encodeSpaces', $encodeSpaces);
foreach ($items as $key => $value) { foreach ($items as $key => $value) {
if (is_array($value)) { if (is_array($value)) {
$groupAttrs = isset($groups[$key]) ? $groups[$key] : []; $groupAttrs = isset($groups[$key]) ? $groups[$key] : [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment