Fix errorField in UserRegistrationDateCondition
authorMatthias Schmidt <gravatronics@live.com>
Thu, 25 Dec 2014 12:31:25 +0000 (13:31 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 25 Dec 2014 12:31:25 +0000 (13:31 +0100)
Close #1851

wcfsetup/install/files/lib/system/condition/UserRegistrationDateCondition.class.php

index a4ab90d2e5b196c9b384ae5c46c2df089a88dae9..b8a10cd18df62cb967faf190eacf74ce6b4f01fb 100644 (file)
@@ -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');
                }
        }