fix template vars sorting

This commit is contained in:
yuri
2016-02-16 10:40:19 +02:00
parent fc03141dee
commit f7ffadc76f
@@ -81,8 +81,10 @@ Espo.define('views/template/fields/variables', 'views/fields/base', function (De
attributeList.unshift('');
this.translatedOptions = (this.getLanguage().data[entityType] || {}).fields || {};
this.translatedOptions = {};
attributeList.forEach(function (item) {
this.translatedOptions[item] = this.translate(item, 'fields', entityType);
}, this);
},
afterRender: function () {