Merge pull request #11363 from AfshanKhan/fix-contact-query

fix: contact not showing in form
This commit is contained in:
mergify[bot] 2020-08-27 06:23:08 +00:00 committed by GitHub
commit bc320acdab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')