From 92265f95c934ab32d5fc66380a44d096ea01b00e Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 6 Aug 2025 11:53:06 +0800 Subject: [PATCH] :art: The database rollup field supports using the template field https://github.com/siyuan-note/siyuan/issues/12384 --- kernel/sql/av.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sql/av.go b/kernel/sql/av.go index a1175dd19..85db7c0f8 100644 --- a/kernel/sql/av.go +++ b/kernel/sql/av.go @@ -352,7 +352,7 @@ func fillAttributeViewAutoGeneratedValues(attrView *av.AttributeView, collection for _, blockID := range relVal.Relation.BlockIDs { 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) }