mirror of https://github.com/Icinga/icinga2.git
Only hide navigational attributes which are not config/state
fixes #11567
This commit is contained in:
parent
f75739399c
commit
09165e5ca6
|
@ -94,12 +94,8 @@ Dictionary::Ptr ObjectQueryHandler::SerializeObjectAttrs(const Object::Ptr& obje
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* hide internal navigation fields */
|
/* hide internal navigation fields */
|
||||||
if (field.Attributes & FANavigation) {
|
if (field.Attributes & FANavigation && !(field.Attributes & (FAConfig | FAState)))
|
||||||
Value nval = object->NavigateField(fid);
|
|
||||||
|
|
||||||
if (val == nval)
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
Value sval = Serialize(val, FAConfig | FAState);
|
Value sval = Serialize(val, FAConfig | FAState);
|
||||||
resultAttrs->Set(field.Name, sval);
|
resultAttrs->Set(field.Name, sval);
|
||||||
|
|
Loading…
Reference in New Issue