From cb2dbdebc225802b35d377ea2bc04187fc8fa4c4 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 25 Dec 2014 13:31:25 +0100 Subject: [PATCH] Fix errorField in UserRegistrationDateCondition Close #1851 --- .../condition/UserRegistrationDateCondition.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'); } } -- 2.20.1