1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-01-23 18:34:02 +02:00

Merge remote-tracking branch 'upstream/main' into compliance-history-export

This commit is contained in:
wiggin77 2023-01-02 18:07:19 -05:00
commit 95d099e47e

View File

@ -78,8 +78,14 @@ class CsvExporter {
const row: string[] = []
row.push(`"${this.encodeText(card.title)}"`)
visibleProperties.forEach((template: IPropertyTemplate) => {
const propertyValue = card.fields.properties[template.id]
let propertyValue = card.fields.properties[template.id]
const property = propsRegistry.get(template.type)
if (property.type === 'createdBy') {
propertyValue = card.createdBy
}
if (property.type === 'updatedBy') {
propertyValue = card.modifiedBy
}
row.push(property.exportValue(propertyValue, card, template, intl))
})
rows.push(row)