mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +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
f6694810e2
commit
d67a041633
4 changed files with 22 additions and 6 deletions
|
|
@ -342,12 +342,7 @@ func fillAttributeViewAutoGeneratedValues(attrView *av.AttributeView, collection
|
|||
for _, blockID := range relVal.Relation.BlockIDs {
|
||||
destVal := destAv.GetValue(rollupKey.Rollup.KeyID, blockID)
|
||||
if nil == destVal && av.KeyTypeTemplate == destKey.Type && nil != viewable {
|
||||
for _, destItem := range viewable.(av.Collection).GetItems() {
|
||||
if blockID == destItem.GetID() {
|
||||
destVal = destItem.GetValue(destKey.ID)
|
||||
break
|
||||
}
|
||||
}
|
||||
destVal = viewable.(av.Collection).GetValue(blockID, destKey.ID)
|
||||
}
|
||||
|
||||
if nil == destVal {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue