From 6705853e3359fc21b529f3fd27213c247b2c80c2 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 29 Aug 2015 12:05:44 +0200 Subject: [PATCH] Add plural_name field to /v1/types fixes #10038 --- lib/remote/typequeryhandler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/remote/typequeryhandler.cpp b/lib/remote/typequeryhandler.cpp index aea42c124..339347afb 100644 --- a/lib/remote/typequeryhandler.cpp +++ b/lib/remote/typequeryhandler.cpp @@ -106,6 +106,7 @@ bool TypeQueryHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& requ Dictionary::Ptr resultAttrs = new Dictionary(); result1->Set("name", obj->GetName()); + result1->Set("plural_name", obj->GetPluralName()); if (obj->GetBaseType()) result1->Set("base", obj->GetBaseType()->GetName()); result1->Set("abstract", obj->IsAbstract()); -- 2.40.0