Respect module field order in non configured record blocks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user