mirror of
https://github.com/mattermost/focalboard.git
synced 2024-11-24 08:22:29 +02:00
Fixed the CSV export for created by property (#4348)
Fixes https://github.com/mattermost/focalboard/issues/4134
This commit is contained in:
parent
44a79615d8
commit
bad0e5b1de
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user