From 76baeadb5bd348c5ed9181acacb008f891163a08 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Mon, 28 Sep 2015 19:14:38 +0200 Subject: [PATCH] Fix wrong query type in modify object api request refs #10212 --- lib/remote/modifyobjecthandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/remote/modifyobjecthandler.cpp b/lib/remote/modifyobjecthandler.cpp index 2c2ed5a8f..300f451e0 100644 --- a/lib/remote/modifyobjecthandler.cpp +++ b/lib/remote/modifyobjecthandler.cpp @@ -38,7 +38,7 @@ bool ModifyObjectHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& r if (request.RequestMethod != "POST") return false; - Type::Ptr type = FilterUtility::TypeFromPluralName(request.RequestUrl->GetPath()[1]); + Type::Ptr type = FilterUtility::TypeFromPluralName(request.RequestUrl->GetPath()[2]); if (!type) { HttpUtility::SendJsonError(response, 400, "Invalid type specified.");