This commit is contained in:
2021-01-04 21:48:12 +00:00
parent 4f9920df9c
commit 9d6355470e
2 changed files with 17 additions and 1 deletions

View File

@@ -385,9 +385,21 @@ async function initDataObject(vm) {
//Iterate ObjectFields
//create a new object based on the f.a.f. item and any existing template values for that item
//Iterate first to ensure the cached translations of field keys
//(due to this form being opened directly from things like record history so might not be cached yet)
let requiredTranslations=[];
//for (var i=0, l=arr.length; i<l; i++)
//if (a.indexOf(arr[i]) === -1 && arr[i] !== '')
// a.push(arr[i]);
for (let i = 0; i < res.data.length; i++) {
}
//Iterate a second time to build the working collection
for (let i = 0; i < res.data.length; i++) {
//get the formAvailableField record into an object to save typing
let faf = res.data[i];
//get the customTemplate record for this field if it exists
let templateItem = window.$gz.formCustomTemplate.getFieldTemplateValue(
@@ -419,5 +431,7 @@ async function initDataObject(vm) {
vm.formCustomTemplateKey
);
}
}
</script>