4209b3bda9
(cherry picked from commit cbddedab7b
)
Co-authored-by: Noah Jacob <noahjacobkurian@gmail.com>
17 lines
378 B
JavaScript
17 lines
378 B
JavaScript
|
|
|
|
frappe.ui.form.on("Contact", {
|
|
refresh(frm) {
|
|
frm.set_query('link_doctype', "links", function() {
|
|
return {
|
|
query: "frappe.contacts.address_and_contact.filter_dynamic_link_doctypes",
|
|
filters: {
|
|
fieldtype: ["in", ["HTML", "Text Editor"]],
|
|
fieldname: ["in", ["contact_html", "company_description"]],
|
|
}
|
|
};
|
|
});
|
|
frm.refresh_field("links");
|
|
}
|
|
});
|