3
0

Re-enable record and user references for record imports

This commit is contained in:
Tomaž Jerman
2023-03-16 09:37:46 +01:00
parent 2a4d5fd2c7
commit 1133020814

View File

@@ -151,7 +151,7 @@ export default {
moduleFields () {
return this.module.fields
.filter(({ kind }) => !['User', 'Record', 'File'].includes(kind))
.filter(({ kind }) => !['File'].includes(kind))
.map(field => field.isRequired === true ? { ...field, label: field.label + '*' } : field)
.map(({ name: value, label }) => ({ value, text: label || value }))
.sort((a, b) => a.text.localeCompare(b.text))