Only hide navigational attributes which are not config/state

fixes #11567
This commit is contained in:
Gunnar Beutner 2016-04-13 12:02:08 +02:00
parent f75739399c
commit 09165e5ca6
1 changed files with 2 additions and 6 deletions

View File

@ -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);