mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Improve database field default filling https://github.com/siyuan-note/siyuan/issues/11966
This commit is contained in:
parent
9c99c6f8ef
commit
3caeeaf29d
1 changed files with 5 additions and 0 deletions
|
|
@ -3157,6 +3157,11 @@ func addAttributeViewBlock(now int64, avID, blockID, groupID, previousBlockID, a
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if av.KeyTypeRollup == newValue.Type {
|
||||||
|
// 汇总字段的值是渲染时计算的,不需要添加到数据存储中
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if av.KeyTypeBlock == newValue.Type {
|
if av.KeyTypeBlock == newValue.Type {
|
||||||
// 如果是主键的话前面已经添加过了,这里仅修改内容
|
// 如果是主键的话前面已经添加过了,这里仅修改内容
|
||||||
blockValue.Block.Content = newValue.Block.Content
|
blockValue.Block.Content = newValue.Block.Content
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue