Make checkboxes option type available for user options
authorMatthias Schmidt <gravatronics@live.com>
Sun, 14 Dec 2014 10:30:29 +0000 (11:30 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 14 Dec 2014 10:30:29 +0000 (11:30 +0100)
wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php
wcfsetup/install/files/lib/acp/form/UserOptionEditForm.class.php

index f9b5d1f517eba5ba3a34df0e6c60c36b604ef990..146c967c07e391e55b4c7301a0461724a9d21b3e 100644 (file)
@@ -124,13 +124,34 @@ class UserOptionAddForm extends AbstractForm {
         * available option types
         * @var array<string>
         */
-       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<string>
         */
-       public static $optionTypesUsingSelectOptions = array('multiSelect', 'radioButton', 'select');
+       public static $optionTypesUsingSelectOptions = array(
+               'checkboxes',
+               'multiSelect',
+               'radioButton',
+               'select'
+       );
        
        /**
         * @see \wcf\page\IPage::readParameters()
index 1b2c90a3baf606c5a26c7461b64a7beb16504a1d..4d4b22f14105600ac97773f47b1124acdd0e5735 100644 (file)
@@ -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;
                }
        }