From 14901a68af3fc51683a87231e4f26bc4b3d3251f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C5=BEe=20Fortun?= Date: Fri, 14 Jun 2024 14:18:14 +0200 Subject: [PATCH] Fix unintentional write to system fields --- .../src/components/PageBlocks/RecordListConfigurator.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/client/web/compose/src/components/PageBlocks/RecordListConfigurator.vue b/client/web/compose/src/components/PageBlocks/RecordListConfigurator.vue index a15f77c82..cb29c2a3f 100644 --- a/client/web/compose/src/components/PageBlocks/RecordListConfigurator.vue +++ b/client/web/compose/src/components/PageBlocks/RecordListConfigurator.vue @@ -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 })) }