diff --git a/client/src/controllers/record.js b/client/src/controllers/record.js index 605b289235..b9f7de8c82 100644 --- a/client/src/controllers/record.js +++ b/client/src/controllers/record.js @@ -48,7 +48,7 @@ Espo.define('controllers/record', 'controller', function (Dep) { }, getViewName: function (type) { - return this.viewMap[type] || this.getMetadata().get('clientDefs.' + this.name + '.views.' + type) || 'views/' + Espo.Utils.camelCaseToHyphen(type); + return this.viewMap[type] || this.getMetadata().get(['clientDefs', this.name, 'views', type]) || 'views/' + Espo.Utils.camelCaseToHyphen(type); }, beforeList: function () {