mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🎨 The database rollup field supports using the template field https://github.com/siyuan-note/siyuan/issues/12384
This commit is contained in:
parent
00d559f9d9
commit
92265f95c9
1 changed files with 1 additions and 1 deletions
|
|
@ -352,7 +352,7 @@ func fillAttributeViewAutoGeneratedValues(attrView *av.AttributeView, collection
|
||||||
|
|
||||||
for _, blockID := range relVal.Relation.BlockIDs {
|
for _, blockID := range relVal.Relation.BlockIDs {
|
||||||
destVal := destAv.GetValue(rollupKey.Rollup.KeyID, blockID)
|
destVal := destAv.GetValue(rollupKey.Rollup.KeyID, blockID)
|
||||||
if nil != viewable && nil == destVal && av.KeyTypeTemplate == destKey.Type {
|
if nil != viewable && av.KeyTypeTemplate == destKey.Type {
|
||||||
destVal = viewable.(av.Collection).GetValue(blockID, destKey.ID)
|
destVal = viewable.(av.Collection).GetValue(blockID, destKey.ID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue