This commit is contained in:
@@ -617,7 +617,9 @@ var JUST_DELETED = false;
|
||||
//
|
||||
//
|
||||
function initForm(vm) {
|
||||
return fetchLocaleText(vm).then(populatePickLists(vm));
|
||||
return fetchLocaleText(vm).then(
|
||||
populatePickLists(vm).then(fetchFormCustomTemplate(vm))
|
||||
);
|
||||
}
|
||||
|
||||
//////////////////////
|
||||
@@ -636,12 +638,7 @@ function populatePickLists(vm) {
|
||||
//
|
||||
//
|
||||
function fetchFormCustomTemplate(vm) {
|
||||
return vm.$gzformcustomtemplate.get(FORM_CUSTOM_TEMPLATE_KEY).then(res => {
|
||||
if (res.error) {
|
||||
throw res.error;
|
||||
}
|
||||
vm.pickLists.roles = res.data;
|
||||
});
|
||||
return vm.$gzformcustomtemplate.get(FORM_CUSTOM_TEMPLATE_KEY);
|
||||
}
|
||||
|
||||
//////////////////////
|
||||
|
||||
Reference in New Issue
Block a user