diff --git a/frappe/public/js/frappe/form/controls/link.js b/frappe/public/js/frappe/form/controls/link.js index b187135181..cb6beadb7a 100644 --- a/frappe/public/js/frappe/form/controls/link.js +++ b/frappe/public/js/frappe/form/controls/link.js @@ -267,15 +267,17 @@ frappe.ui.form.ControlLink = class ControlLink extends frappe.ui.form.ControlDat r.results = me.merge_duplicates(r.results); // show filter description in awesomplete - if (args.filters) { - let filter_string = me.get_filter_description(args.filters); - if (filter_string) { - r.results.push({ - html: `${filter_string}`, - value: "", - action: () => {}, - }); - } + let filter_string = me.df.filter_description + ? me.df.filter_description + : args.filters + ? me.get_filter_description(args.filters) + : null; + if (filter_string) { + r.results.push({ + html: `${filter_string}`, + value: "", + action: () => {}, + }); } if (!me.df.only_select) {