From: Matthias Schmidt Date: Sun, 14 Dec 2014 10:30:29 +0000 (+0100) Subject: Make checkboxes option type available for user options X-Git-Tag: 2.1.0_Beta_1~13 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=75b4fb6cc294173560883cc47e0554e0aeb046b9;p=GitHub%2FWoltLab%2FWCF.git Make checkboxes option type available for user options --- diff --git a/wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php index f9b5d1f517..146c967c07 100644 --- a/wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php @@ -124,13 +124,34 @@ class UserOptionAddForm extends AbstractForm { * available option types * @var array */ - public static $availableOptionTypes = array('aboutMe', 'birthday', 'boolean', 'date', 'integer', 'float', 'password', 'multiSelect', 'radioButton', 'select', 'text', 'textarea', 'message', 'URL'); + public static $availableOptionTypes = array( + 'aboutMe', + 'birthday', + 'boolean', + 'checkboxes', + 'date', + 'integer', + 'float', + 'password', + 'multiSelect', + 'radioButton', + 'select', + 'text', + 'textarea', + 'message', + 'URL' + ); /** * list of option type that require select options * @var array */ - public static $optionTypesUsingSelectOptions = array('multiSelect', 'radioButton', 'select'); + public static $optionTypesUsingSelectOptions = array( + 'checkboxes', + 'multiSelect', + 'radioButton', + 'select' + ); /** * @see \wcf\page\IPage::readParameters() diff --git a/wcfsetup/install/files/lib/acp/form/UserOptionEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserOptionEditForm.class.php index 1b2c90a3ba..4d4b22f141 100644 --- a/wcfsetup/install/files/lib/acp/form/UserOptionEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserOptionEditForm.class.php @@ -98,7 +98,7 @@ class UserOptionEditForm extends UserOptionAddForm { $this->visible = $this->userOption->visible; $this->searchable = $this->userOption->searchable; $this->showOrder = $this->userOption->showOrder; - $this->outputClass = $this->userOption->outputClass; + $this->outputClass = $this->userOption->outputClass; } }