From 5f73a9b1a7379a5e6a8c44e4ba2afe9c8c77d6d5 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 4 Jul 2019 15:31:05 +0200 Subject: [PATCH] Changed default value of rating fields to null --- .../form/builder/field/RatingFormField.class.php | 11 ----------- 1 file changed, 11 deletions(-) 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. * -- 2.20.1