From 1db8269b9fda637e01e638619196c91d4d069dfb Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 21 Apr 2024 17:52:08 +0800 Subject: [PATCH] :bug: Database unbind block causes entry to be deleted Fix https://github.com/siyuan-note/siyuan/issues/11101 --- kernel/model/attribute_view.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index ad8d3d96d..eefa76e4a 100644 --- a/kernel/model/attribute_view.go +++ b/kernel/model/attribute_view.go @@ -1339,6 +1339,7 @@ func unbindAttributeViewBlock(operation *Operation, tx *Transaction) (err error) unbindBlockAv(tx, operation.AvID, value.BlockID) } value.BlockID = operation.NextID + value.IsDetached = true if nil != value.Block { value.Block.ID = operation.NextID }