[#58] object/transformer: Inherit type of parent object

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-09-30 13:49:14 +03:00 committed by Alex Vanin
parent 39ddb3a3f4
commit b24adeae89

View file

@ -92,6 +92,7 @@ func fromObject(obj *object.RawObject) *object.RawObject {
res.SetContainerID(obj.GetContainerID()) res.SetContainerID(obj.GetContainerID())
res.SetOwnerID(obj.GetOwnerID()) res.SetOwnerID(obj.GetOwnerID())
res.SetAttributes(obj.GetAttributes()...) res.SetAttributes(obj.GetAttributes()...)
res.SetType(obj.GetType())
return res return res
} }