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

This commit is contained in:
Daniel 2025-08-04 11:24:46 +08:00
parent 9c99c6f8ef
commit 3caeeaf29d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -3157,6 +3157,11 @@ func addAttributeViewBlock(now int64, avID, blockID, groupID, previousBlockID, a
continue
}
if av.KeyTypeRollup == newValue.Type {
// 汇总字段的值是渲染时计算的,不需要添加到数据存储中
continue
}
if av.KeyTypeBlock == newValue.Type {
// 如果是主键的话前面已经添加过了,这里仅修改内容
blockValue.Block.Content = newValue.Block.Content