From e1373386fa6756686b3e9450327677ad1ac22732 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 13 Apr 2016 12:02:08 +0200 Subject: [PATCH] Only hide navigational attributes which are not config/state fixes #11567 --- lib/remote/objectqueryhandler.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/remote/objectqueryhandler.cpp b/lib/remote/objectqueryhandler.cpp index ef6c937a4..111d284bc 100644 --- a/lib/remote/objectqueryhandler.cpp +++ b/lib/remote/objectqueryhandler.cpp @@ -94,12 +94,8 @@ Dictionary::Ptr ObjectQueryHandler::SerializeObjectAttrs(const Object::Ptr& obje continue; /* hide internal navigation fields */ - if (field.Attributes & FANavigation) { - Value nval = object->NavigateField(fid); - - if (val == nval) - continue; - } + if (field.Attributes & FANavigation && !(field.Attributes & (FAConfig | FAState))) + continue; Value sval = Serialize(val, FAConfig | FAState); resultAttrs->Set(field.Name, sval);