From: Gunnar Beutner Date: Sat, 29 Aug 2015 10:05:44 +0000 (+0200) Subject: Add plural_name field to /v1/types X-Git-Tag: v2.4.0~348 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6705853e3359fc21b529f3fd27213c247b2c80c2;p=icinga2 Add plural_name field to /v1/types fixes #10038 --- 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());