mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 Improve database field default filling https://github.com/siyuan-note/siyuan/issues/11966
This commit is contained in:
parent
d115103f10
commit
564117575a
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue