fix: Remove 'ignore_user_type' from user filter

This commit is contained in:
Suraj Shetty 2021-03-23 09:54:02 +05:30
parent 4834985417
commit d9bb0c7a99

View file

@ -874,6 +874,7 @@ def user_query(doctype, txt, searchfield, start, page_len, filters):
user_type_condition = "and user_type = 'System User'"
if filters and filters.get('ignore_user_type'):
user_type_condition = ''
filters.pop('ignore_user_type')
txt = "%{}%".format(txt)
return frappe.db.sql("""SELECT `name`, CONCAT_WS(' ', first_name, middle_name, last_name)