🎨 The database template field supports using other template fields https://github.com/siyuan-note/siyuan/issues/15517

This commit is contained in:
Daniel 2025-08-20 19:34:19 +08:00
parent aabb85d895
commit 752457b888
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 17 additions and 8 deletions

View file

@ -249,7 +249,7 @@ func RenderTemplateField(ial map[string]string, keyValues []*av.KeyValues, tplCo
func generateAttrViewItems(attrView *av.AttributeView, view *av.View) (ret map[string][]*av.KeyValues) {
ret = map[string][]*av.KeyValues{}
for _, keyValues := range attrView.KeyValues {
for _, keyValues := range attrView.OriginalKeyValues {
for _, val := range keyValues.Values {
values := ret[val.BlockID]
if nil == values {