fix(control): navigate back to link if new object created from dynamic link
This commit is contained in:
parent
9fbe0f46d5
commit
4f2b330fc2
1 changed files with 2 additions and 1 deletions
|
|
@ -233,6 +233,7 @@ frappe.ui.form.remove_old_form_route = () => {
|
|||
}
|
||||
|
||||
frappe.ui.form.update_calling_link = (newdoc) => {
|
||||
if (!frappe._from_link) return;
|
||||
var doc = frappe.get_doc(frappe._from_link.doctype, frappe._from_link.docname);
|
||||
|
||||
let is_valid_doctype = () => {
|
||||
|
|
@ -244,7 +245,7 @@ frappe.ui.form.update_calling_link = (newdoc) => {
|
|||
}
|
||||
};
|
||||
|
||||
if (frappe._from_link && is_valid_doctype()) {
|
||||
if (is_valid_doctype()) {
|
||||
// set value
|
||||
if (doc && doc.parentfield) {
|
||||
//update values for child table
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue