mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
parent
0eada26b04
commit
df05e24d52
@ -130,6 +130,9 @@ Dictionary::Ptr RedisWriter::SerializeObjectAttrs(const Object::Ptr& object, int
|
|||||||
{
|
{
|
||||||
Field field = type->GetFieldInfo(fid);
|
Field field = type->GetFieldInfo(fid);
|
||||||
|
|
||||||
|
if ((field.Attributes & fieldType) == 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
Value val = object->GetField(fid);
|
Value val = object->GetField(fid);
|
||||||
|
|
||||||
/* hide attributes which shouldn't be user-visible */
|
/* hide attributes which shouldn't be user-visible */
|
||||||
@ -140,7 +143,7 @@ Dictionary::Ptr RedisWriter::SerializeObjectAttrs(const Object::Ptr& object, int
|
|||||||
if (field.Attributes & FANavigation && !(field.Attributes & (FAConfig | FAState)))
|
if (field.Attributes & FANavigation && !(field.Attributes & (FAConfig | FAState)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
Value sval = Serialize(val, fieldType);
|
Value sval = Serialize(val);
|
||||||
resultAttrs->Set(field.Name, sval);
|
resultAttrs->Set(field.Name, sval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user