Merge pull request #7595 from adityahase/fix-email-autosuggest-develop
fix(email): Search contacts by email_id as well
This commit is contained in:
commit
37283e4e84
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ def get_contact_list(txt, page_length=20):
|
|||
out = frappe.db.sql("""select email_id as value,
|
||||
concat(first_name, ifnull(concat(' ',last_name), '' )) as description
|
||||
from tabContact
|
||||
where name like %(txt)s
|
||||
where name like %(txt)s or email_id like %(txt)s
|
||||
%(condition)s
|
||||
limit %(page_length)s""", {
|
||||
'txt': '%' + txt + '%',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue