3
0

Fix unintentional write to system fields

This commit is contained in:
Jože Fortun
2024-06-14 14:18:14 +02:00
parent c73b84369d
commit 14901a68af
@@ -856,13 +856,10 @@ export default {
return [
...this.recordListModule.fields,
...this.recordListModule.systemFields().map(sf => {
sf.label = this.$t(`field:system.${sf.name}`)
if (sf.name === 'recordID') {
sf.name = 'ID'
return {
label: this.$t(`field:system.${sf.name}`),
name: sf.name === 'recordID' ? 'ID' : sf.name,
}
return sf
}),
].map(({ name, label }) => ({ name, label }))
}