From 3a86bd208c8172d82c377f81adcab7c5184fd0ae Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 7 Jul 2018 17:22:02 +0200 Subject: [PATCH] Add missing method in `RadioButtonFormField` See 89f146f98c612e7924de77816920cf9553ef626a See #2509 --- .../field/RadioButtonFormField.class.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/form/builder/field/RadioButtonFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/RadioButtonFormField.class.php index 0353cb4034..d6cd83e3de 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/RadioButtonFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/RadioButtonFormField.class.php @@ -21,7 +21,22 @@ class RadioButtonFormField extends AbstractFormField implements ISelectionFormFi /** * @inheritDoc */ - protected static function supportsNestedOptions(): bool { + public function readValue(): IFormField { + if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { + $value = $this->getDocument()->getRequestData($this->getPrefixedId()); + + if (is_string($value)) { + $this->__value = $value; + } + } + + return $this; + } + + /** + * @inheritDoc + */ + public function supportsNestedOptions(): bool { return false; } } -- 2.20.1