3
0

Respect module field order in non configured record blocks

This commit is contained in:
Jože Fortun
2023-03-23 11:17:43 +01:00
parent 2b96476d2b
commit 7524260bed
2 changed files with 3 additions and 3 deletions
@@ -92,7 +92,7 @@ export default {
if (!this.options.fields || this.options.fields.length === 0) {
// No fields defined in the options, show all (buy system)
return this.module.fields.slice().sort((a, b) => a.label.localeCompare(b.label))
return this.module.fields
}
// Show filtered & ordered list of fields
@@ -118,8 +118,8 @@ export default {
}
if (!this.options.fields || this.options.fields.length === 0) {
// No fields defined in the options, show all (buy system)
return this.module.fields.slice().sort((a, b) => a.label.localeCompare(b.label))
// No fields defined in the options, show all (but system)
return this.module.fields
}
// Show filtered & ordered list of fields