Merge pull request #36099 from AarDG10/fix-contact-pg
fix(contact): ensure query is compatible with postgres
This commit is contained in:
commit
8d18a47bad
1 changed files with 1 additions and 1 deletions
|
|
@ -366,7 +366,7 @@ def contact_query(doctype, txt, searchfield, start, page_len, filters):
|
|||
order by
|
||||
if(locate(%(_txt)s, `tabContact`.full_name), locate(%(_txt)s, `tabContact`.company_name), 99999),
|
||||
`tabContact`.idx desc, `tabContact`.full_name
|
||||
limit %(start)s, %(page_len)s """,
|
||||
limit %(page_len)s offset %(start)s """,
|
||||
{
|
||||
"txt": "%" + txt + "%",
|
||||
"_txt": txt.replace("%", ""),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue