Fix wrong query type in modify object api request

refs #10212
This commit is contained in:
Michael Friedrich 2015-09-28 19:14:38 +02:00
parent 20b4545da4
commit 76baeadb5b
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ bool ModifyObjectHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& r
if (request.RequestMethod != "POST") if (request.RequestMethod != "POST")
return false; return false;
Type::Ptr type = FilterUtility::TypeFromPluralName(request.RequestUrl->GetPath()[1]); Type::Ptr type = FilterUtility::TypeFromPluralName(request.RequestUrl->GetPath()[2]);
if (!type) { if (!type) {
HttpUtility::SendJsonError(response, 400, "Invalid type specified."); HttpUtility::SendJsonError(response, 400, "Invalid type specified.");