Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: The database rollup field supports using the template field https://github.com/siyuan-note/siyuan/issues/12384

Daniel92265f95c934
diff --git a/kernel/sql/av.go b/kernel/sql/av.go
index a1175dd19a..85db7c0f8d 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)
}