Sfoglia il codice sorgente

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

Daniel 1 anno fa
parent
commit
1db8269b9f
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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
 			}