mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
ecd9b61b79
commit
e54c0d8fdc
1 changed files with 7 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue