This commit is contained in:
@@ -404,13 +404,14 @@ async function fetchTranslatedFieldNames(vm) {
|
||||
let columnKeys = [];
|
||||
for (let i = 0; i < vm.fieldDefinitions.length; i++) {
|
||||
let cm = vm.fieldDefinitions[i];
|
||||
columnKeys.push(cm.tKey);
|
||||
if (!columnKeys.includes(cm.tKey)) {
|
||||
columnKeys.push(cm.tKey);
|
||||
}
|
||||
//get section names too if present
|
||||
if (cm.tKeySection != null) {
|
||||
if (cm.tKeySection != null && !columnKeys.includes(cm.tKeySection)) {
|
||||
columnKeys.push(cm.tKeySection);
|
||||
}
|
||||
}
|
||||
|
||||
await window.$gz.translation.cacheTranslations(columnKeys);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user