Browse Source

:bug: Database unbind block causes entry to be deleted Fix https://github.com/siyuan-note/siyuan/issues/11101

Daniel 1 year ago
parent
commit
1db8269b9f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      kernel/model/attribute_view.go

+ 1 - 0
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
 			}