mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
🐛 Database unbind block causes entry to be deleted Fix https://github.com/siyuan-note/siyuan/issues/11101
This commit is contained in:
parent
428d6e189d
commit
1db8269b9f
1 changed files with 1 additions and 0 deletions
|
|
@ -1339,6 +1339,7 @@ func unbindAttributeViewBlock(operation *Operation, tx *Transaction) (err error)
|
||||||
unbindBlockAv(tx, operation.AvID, value.BlockID)
|
unbindBlockAv(tx, operation.AvID, value.BlockID)
|
||||||
}
|
}
|
||||||
value.BlockID = operation.NextID
|
value.BlockID = operation.NextID
|
||||||
|
value.IsDetached = true
|
||||||
if nil != value.Block {
|
if nil != value.Block {
|
||||||
value.Block.ID = operation.NextID
|
value.Block.ID = operation.NextID
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue