diff --git a/frontend/client/res/templates/record/list.tpl b/frontend/client/res/templates/record/list.tpl index 7cdbacf220..de63cc8c22 100644 --- a/frontend/client/res/templates/record/list.tpl +++ b/frontend/client/res/templates/record/list.tpl @@ -7,7 +7,7 @@ {{{pagination}}} {{/if}} - + {{#if checkboxes}} {{#if actions}}
@@ -38,7 +38,7 @@ {{#if this.sortable}} - {{#if this.customLabel}} + {{#if this.hasCustomLabel}} {{this.customLabel}} {{else}} {{translate this.name scope=../../../collection.name category='fields'}} @@ -46,7 +46,7 @@ {{#if this.sorted}}{{#if this.asc}}{{else}}{{/if}}{{/if}} {{else}} - {{#if this.customLabel}} + {{#if this.hasCustomLabel}} {{this.customLabel}} {{else}} {{translate this.name scope=../../../collection.name category='fields'}} diff --git a/frontend/client/src/views/record/list.js b/frontend/client/src/views/record/list.js index ae525fd613..b2b7162f2b 100644 --- a/frontend/client/src/views/record/list.js +++ b/frontend/client/src/views/record/list.js @@ -445,6 +445,7 @@ Espo.define('Views.Record.List', 'View', function (Dep) { }; if ('customLabel' in this.listLayout[i]) { item.customLabel = this.listLayout[i].customLabel; + item.hasCustomLabel = true; } if (item.sortable) { item.sorted = this.collection.sortBy === this.listLayout[i].name;