mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 The database template field supports using other template fields https://github.com/siyuan-note/siyuan/issues/15517
This commit is contained in:
parent
aabb85d895
commit
752457b888
2 changed files with 17 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue