[fix] synchronously load doctypes for linked with
This commit is contained in:
parent
b9808e1cee
commit
ed6f2dc42f
2 changed files with 3 additions and 2 deletions
|
|
@ -65,7 +65,7 @@ frappe.ui.form.LinkedWith = Class.extend({
|
|||
// add additional fields to __linked_doctypes
|
||||
me.frm.__linked_doctypes[dt].add_fields = frappe.listview_settings[dt].add_fields;
|
||||
}
|
||||
});
|
||||
}, /*async*/ false);
|
||||
}));
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ $.extend(frappe.model, {
|
|||
return docfield[0];
|
||||
},
|
||||
|
||||
with_doctype: function(doctype, callback) {
|
||||
with_doctype: function(doctype, callback, async) {
|
||||
if(locals.DocType[doctype]) {
|
||||
callback && callback();
|
||||
} else {
|
||||
|
|
@ -98,6 +98,7 @@ $.extend(frappe.model, {
|
|||
with_parent: 1,
|
||||
cached_timestamp: cached_timestamp
|
||||
},
|
||||
async: async,
|
||||
freeze: true,
|
||||
callback: function(r) {
|
||||
if(r.exc) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue