From ce161b37f8883437db20aefa4710157b0c9ab656 Mon Sep 17 00:00:00 2001 From: Afshan Date: Wed, 26 Aug 2020 22:32:46 +0530 Subject: [PATCH] fix: contact not showing in form --- frappe/contacts/doctype/contact/contact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/contacts/doctype/contact/contact.py b/frappe/contacts/doctype/contact/contact.py index f82946dc5e..987ba7d3d6 100644 --- a/frappe/contacts/doctype/contact/contact.py +++ b/frappe/contacts/doctype/contact/contact.py @@ -188,7 +188,7 @@ def contact_query(doctype, txt, searchfield, start, page_len, filters): from frappe.desk.reportview import get_match_cond if not frappe.get_meta("Contact").get_field(searchfield)\ - or searchfield not in frappe.db.DEFAULT_COLUMNS: + and searchfield not in frappe.db.DEFAULT_COLUMNS: return [] link_doctype = filters.pop('link_doctype')