From: Marcel Werk Date: Thu, 4 Jul 2019 13:31:05 +0000 (+0200) Subject: Changed default value of rating fields to null X-Git-Tag: 5.2.0_Alpha_2~46 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5f73a9b1a7379a5e6a8c44e4ba2afe9c8c77d6d5;p=GitHub%2FWoltLab%2FWCF.git Changed default value of rating fields to null --- diff --git a/wcfsetup/install/files/lib/system/form/builder/field/RatingFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/RatingFormField.class.php index 999c43b6a6..3d4437e701 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/RatingFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/RatingFormField.class.php @@ -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. *