From f58229761c0363e6e1adcd5d3199a5bba4642edf Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 16 Jul 2015 12:09:14 +0200 Subject: [PATCH] Fixed validation of required boolean fields --- .../files/lib/system/option/user/UserOptionHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php b/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php index 67ed0e848f..bc0b10b253 100644 --- a/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php @@ -187,7 +187,7 @@ class UserOptionHandler extends OptionHandler { protected function validateOption(Option $option) { parent::validateOption($option); - if ($option->required && empty($this->optionValues[$option->optionName])) { + if ($option->required && $option->optionType != 'boolean' && empty($this->optionValues[$option->optionName])) { throw new UserInputException($option->optionName); } -- 2.20.1