fix(Workspace Sidebar Item): clear link to field if link type is set to URL
This commit is contained in:
parent
c6dde2d495
commit
f2e6392447
1 changed files with 5 additions and 0 deletions
|
|
@ -15,4 +15,9 @@ frappe.ui.form.on("Workspace Sidebar", {
|
|||
});
|
||||
}
|
||||
},
|
||||
link_type: function (frm) {
|
||||
if (frm.doc.link_type == "URL") {
|
||||
frm.set_value("link_to", "");
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue