Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve database field default filling https://github.com/siyuan-note/siyuan/issues/11966

Daniel564117575a1e
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index c3473f5a2d..74fc062801 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -4569,7 +4569,7 @@ func updateAttributeViewValue(tx *Transaction, attrView *av.AttributeView, keyID
// 将绑定的块从属性视图中移除
unbindBlockAv(tx, avID, rowID)
} else {
- // 现在绑定了块
+ // 现在也绑定了块
if oldBoundBlockID != val.BlockID { // 之前绑定的块和现在绑定的块不一样
// 换绑块
@@ -4582,8 +4582,7 @@ func updateAttributeViewValue(tx *Transaction, attrView *av.AttributeView, keyID
updateStaticText := true
_, blockText := getNodeAvBlockText(node)
if "" == content {
- val.Block.Content = blockText
- val.Block.Content = util.UnescapeHTML(val.Block.Content)
+ val.Block.Content = util.UnescapeHTML(blockText)
} else {
if blockText == content {
updateStaticText = false