🎨 Improve database sort/calc for relation and rollup

This commit is contained in:
Daniel 2024-04-14 12:34:06 +08:00
parent 02415b8e90
commit bf4ad0972b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 60 additions and 54 deletions

View file

@ -598,7 +598,7 @@ func getAttributeViewContent(avID string) (content string) {
if nil == cell.Value {
continue
}
buf.WriteString(cell.Value.String())
buf.WriteString(cell.Value.String(true))
buf.WriteByte(' ')
}
}
@ -1055,7 +1055,7 @@ func renderTemplateCol(ial map[string]string, rowValues []*av.KeyValues, tplCont
dataModel[rowValue.Key.Name] = v.Rollup.Contents[0].Number.Content
}
} else {
dataModel[rowValue.Key.Name] = v.String()
dataModel[rowValue.Key.Name] = v.String(true)
}
}
}