From: Matthias Schmidt Date: Thu, 25 Dec 2014 12:31:25 +0000 (+0100) Subject: Fix errorField in UserRegistrationDateCondition X-Git-Tag: 2.1.0_Beta_3~82 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cb2dbdebc225802b35d377ea2bc04187fc8fa4c4;p=GitHub%2FWoltLab%2FWCF.git Fix errorField in UserRegistrationDateCondition Close #1851 --- diff --git a/wcfsetup/install/files/lib/system/condition/UserRegistrationDateCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserRegistrationDateCondition.class.php index a4ab90d2e5..b8a10cd18d 100644 --- a/wcfsetup/install/files/lib/system/condition/UserRegistrationDateCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserRegistrationDateCondition.class.php @@ -131,7 +131,7 @@ HTML; if ($registrationDateStart === false) { $this->errorMessage = 'wcf.user.condition.registrationDate.error.startNotValid'; - throw new UserInputException($this->fieldName, 'startNotValid'); + throw new UserInputException('registrationDateStart', 'startNotValid'); } } if (strlen($this->registrationDateEnd)) { @@ -139,14 +139,14 @@ HTML; if ($registrationDateEnd === false) { $this->errorMessage = 'wcf.user.condition.registrationDate.error.endNotValid'; - throw new UserInputException($this->fieldName, 'endNotValid'); + throw new UserInputException('registrationDateEnd', 'endNotValid'); } } if ($registrationDateEnd !== null && $registrationDateStart !== null && $registrationDateEnd < $registrationDateStart) { $this->errorMessage = 'wcf.user.condition.registrationDate.error.endBeforeStart'; - throw new UserInputException($this->fieldName, 'endBeforeStart'); + throw new UserInputException('registrationDateEnd', 'endBeforeStart'); } }