From 294bcc42f5d833fc469f7120aed2405a08895661 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 27 Feb 2013 02:12:33 +0100 Subject: [PATCH] Added error type to failure data --- wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php b/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php index c58ea24b0f..663ba4285f 100644 --- a/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php @@ -159,7 +159,8 @@ class AJAXInvokeAction extends AbstractSecureAction { $exception = new ValidateActionException($e->getField(), $e->getType(), $e->getVariables()); throw new AJAXException($exception->getMessage(), AJAXException::BAD_PARAMETERS, $e->getTraceAsString(), array( 'errorMessage' => $exception->getMessage(), - 'fieldName' => $exception->getFieldName() + 'errorType' => $e->getType(), + 'fieldName' => $exception->getFieldName(), )); } else if ($e instanceof ValidateActionException) { -- 2.20.1