mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
chore: included value in "key" for search condition
This commit is contained in:
@@ -49,7 +49,7 @@ def employee_query(
|
||||
"""select {fields} from `tabEmployee`
|
||||
where status in ('Active', 'Suspended')
|
||||
and docstatus < 2
|
||||
and ({search_conditions})
|
||||
and ({key} like %(txt)s or {search_conditions})
|
||||
{fcond} {mcond}
|
||||
order by
|
||||
(case when locate(%(_txt)s, name) > 0 then locate(%(_txt)s, name) else 99999 end),
|
||||
|
||||
Reference in New Issue
Block a user