Merge pull request #5110 from nabinhait/warranty_claim_fix
[fix] Get query for item in warranty claim
diff --git a/erpnext/controllers/queries.py b/erpnext/controllers/queries.py
index eff5f53..91cd0da 100644
--- a/erpnext/controllers/queries.py
+++ b/erpnext/controllers/queries.py
@@ -184,8 +184,8 @@
idx desc,
name, item_name
limit %(start)s, %(page_len)s """.format(key=searchfield,
- fcond=get_filters_cond(doctype, filters, conditions),
- mcond=get_match_cond(doctype)),
+ fcond=get_filters_cond(doctype, filters, conditions).replace('%', '%%'),
+ mcond=get_match_cond(doctype).replace('%', '%%')),
{
"today": nowdate(),
"txt": "%%%s%%" % txt,