Fix handling of `UserInputException` during AJAX requests
authorMatthias Schmidt <gravatronics@live.com>
Thu, 18 Apr 2019 14:06:53 +0000 (16:06 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 18 Apr 2019 14:06:53 +0000 (16:06 +0200)
See 8d7da08f6f0095510c359df4dc2d433a9022cf67

wcfsetup/install/files/lib/action/TAJAXException.class.php

index 51ceddca0018c7dcea8b7265fe4c44278299d6e4..e8652bff1f87d51c1ff67032b05a733b8f6effc1 100644 (file)
@@ -72,7 +72,7 @@ trait TAJAXException {
                                        'errorMessage' => $exception->getMessage(),
                                        'errorType' => $e->getType(),
                                        'file' => $e->getFile(),
-                                       'fieldName' => $e->getFieldName(),
+                                       'fieldName' => $exception->getFieldName(),
                                        'line' => $e->getLine(),
                                        'realErrorMessage' => $exception->getErrorMessage()
                                ]