Small OptionHandler improvement
authorMarcel Werk <burntime@woltlab.com>
Mon, 18 Jul 2016 15:41:26 +0000 (17:41 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 18 Jul 2016 15:41:26 +0000 (17:41 +0200)
wcfsetup/install/files/lib/system/option/OptionHandler.class.php

index 9b3a471de8ad145263a8f8efbeec131d03e4b940..9f2efe6aa1bcfb052e7b84ef0d75b1e8d6886c54 100644 (file)
@@ -277,6 +277,7 @@ class OptionHandler implements IOptionHandler {
                
                return [
                        'object' => $option,
+                       'value' => (isset($this->optionValues[$option->optionName]) ? $this->optionValues[$option->optionName] : null),
                        'html' => $html,
                        'cssClassName' => $this->getTypeObject($option->optionType)->getCSSClassName(),
                        'hideLabelInSearch' => $this->getTypeObject($option->optionType)->hideLabelInSearch()