Changed default value of rating fields to null
authorMarcel Werk <burntime@woltlab.com>
Thu, 4 Jul 2019 13:31:05 +0000 (15:31 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 4 Jul 2019 13:31:05 +0000 (15:31 +0200)
wcfsetup/install/files/lib/system/form/builder/field/RatingFormField.class.php

index 999c43b6a641134f3a9baa07ef20916c8328ae18..3d4437e701a07ad1bdac961ee9c6375419e05822 100644 (file)
@@ -125,17 +125,6 @@ class RatingFormField extends AbstractFormField implements IImmutableFormField,
                return $this->defaultCssClasses;
        }
        
-       /**
-        * @inheritDoc
-        */
-       public function getValue() {
-               if ($this->value === null && !$this->isNullable()) {
-                       $this->value = $this->getMinimum();
-               }
-               
-               return parent::getValue();
-       }
-       
        /**
         * Returns the sorted list of possible ratings used to generate the form field's html code.
         *