From e0ffe7a575e66066ab16df5a613db6f70473d6c7 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 25 Aug 2014 18:38:08 +0530 Subject: [PATCH] [hotfix] Product Search --- erpnext/templates/pages/product_search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/templates/pages/product_search.py b/erpnext/templates/pages/product_search.py index 93773bd6d9..064170299d 100644 --- a/erpnext/templates/pages/product_search.py +++ b/erpnext/templates/pages/product_search.py @@ -18,14 +18,14 @@ def get_product_list(search=None, start=0, limit=10): # search term condition if search: - query += """and web_long_description like %(search)s + query += """ and (web_long_description like %(search)s or description like %(search)s or item_name like %(search)s or name like %(search)s)""" search = "%" + cstr(search) + "%" # order by - query += """order by weightage desc, modified desc limit %s, %s""" % (start, limit) + query += """ order by weightage desc, modified desc limit %s, %s""" % (start, limit) data = frappe.db.sql(query, { "search": search,