diff --git a/erpnext/crm/doctype/opportunity/opportunity.js b/erpnext/crm/doctype/opportunity/opportunity.js index d8aa8f7ebb..974b23e69a 100644 --- a/erpnext/crm/doctype/opportunity/opportunity.js +++ b/erpnext/crm/doctype/opportunity/opportunity.js @@ -107,7 +107,7 @@ erpnext.crm.Opportunity = frappe.ui.form.Controller.extend({ $.each([["lead", "lead"], ["customer", "customer"], - ["contact_person", "customer_filter"]], function(i, opts) { + ["contact_person", "contact_query"]], function(i, opts) { me.frm.set_query(opts[0], erpnext.queries[opts[1]]); }); },