This commit is contained in:
@@ -386,6 +386,12 @@ async function initDataObject(vm) {
|
||||
if (requiredTranslations.indexOf(res.data[i].tKey) === -1) {
|
||||
requiredTranslations.push(res.data[i].tKey);
|
||||
}
|
||||
//sections
|
||||
if (res.data[i].tKeySection != null) {
|
||||
if (requiredTranslations.indexOf(res.data[i].tKeySection) === -1) {
|
||||
requiredTranslations.push(res.data[i].tKeySection);
|
||||
}
|
||||
}
|
||||
}
|
||||
await window.$gz.translation.cacheTranslations(requiredTranslations);
|
||||
|
||||
@@ -412,13 +418,20 @@ async function initDataObject(vm) {
|
||||
|
||||
let objItem = {
|
||||
key: faf.fieldKey,
|
||||
title: vm.$ay.t(faf.tKey), //sb already cached either above or from the main form it's customizing
|
||||
title: null,
|
||||
custom: faf.isCustomField,
|
||||
required: templateItem.required === true,
|
||||
visible: templateItem.hide !== true,
|
||||
type: templateItem.type
|
||||
};
|
||||
|
||||
//set title including optional section prepended
|
||||
if (faf.tKeySection != null) {
|
||||
objItem.title = vm.$ay.t(faf.tKeySection) + "." + vm.$ay.t(faf.tKey);
|
||||
} else {
|
||||
objItem.title = vm.$ay.t(faf.tKey);
|
||||
}
|
||||
|
||||
vm.obj.push(objItem);
|
||||
vm.concurrency = window.$gz.formCustomTemplate.getTemplateConcurrencyToken(
|
||||
vm.formCustomTemplateKey
|
||||
|
||||
@@ -1103,7 +1103,7 @@ async function fetchTranslatedText(vm) {
|
||||
"WorkOrderItemScheduledUserEstimatedQuantity",
|
||||
"WorkOrderItemScheduledUserUserID",
|
||||
"WorkOrderItemScheduledUserServiceRateID",
|
||||
"Sequence",
|
||||
"WorkOrderItemSequence",
|
||||
"WorkOrderItemUnitList",
|
||||
"AddressTypePhysical",
|
||||
"AddressTypePostal",
|
||||
|
||||
Reference in New Issue
Block a user