Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-11-24 17:18:28 +08:00
parent ecd9b61b79
commit e54c0d8fdc
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -745,6 +745,13 @@ func (av *AttributeView) Clone() (ret *AttributeView) {
oldKeyIDs = append(oldKeyIDs, kv.Key.ID) oldKeyIDs = append(oldKeyIDs, kv.Key.ID)
kv.Key.ID = newID kv.Key.ID = newID
kv.Values = []*Value{} kv.Values = []*Value{}
if KeyTypeRelation == kv.Key.Type {
// 断开关联
kv.Key.Relation.IsTwoWay = false
kv.Key.Relation.AvID = ""
kv.Key.Relation.BackKeyID = ""
}
} }
oldKeyIDs = gulu.Str.RemoveDuplicatedElem(oldKeyIDs) oldKeyIDs = gulu.Str.RemoveDuplicatedElem(oldKeyIDs)