mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 06:30:14 +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)
|
||||
kv.Key.ID = newID
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue