From 1abf5870b28657b1310db81619e5aa96cd6c32be Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Mon, 16 Sep 2024 11:05:45 +0200 Subject: [PATCH] The function `getContent()` is called by `getData()` and internally `getContent()` is used to parse the value. See https://www.woltlab.com/community/thread/308217-the-set-value-is-too-large-error-when-trying-to-edit-a-user-group/ --- .../files/lib/system/option/FileSizeOptionType.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/option/FileSizeOptionType.class.php b/wcfsetup/install/files/lib/system/option/FileSizeOptionType.class.php index 07411e00b5..ee424f12b1 100644 --- a/wcfsetup/install/files/lib/system/option/FileSizeOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/FileSizeOptionType.class.php @@ -23,7 +23,7 @@ class FileSizeOptionType extends TextOptionType /** * @inheritDoc */ - public function getData(Option $option, $newValue) + public function getContent(Option $option, $newValue) { $number = \str_replace(WCF::getLanguage()->get('wcf.global.thousandsSeparator'), '', $newValue); $number = \str_replace(WCF::getLanguage()->get('wcf.global.decimalPoint'), '.', $number); -- 2.20.1