From 7180eb6f209d34e7f5403a94ed147aaea32d7e3d Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 30 Jul 2013 14:40:44 +0530 Subject: [PATCH] [queries] [optimization] removed redundant code in get_match_cond --- controllers/queries.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/controllers/queries.py b/controllers/queries.py index 219fc743d15..caa2f6f0650 100644 --- a/controllers/queries.py +++ b/controllers/queries.py @@ -36,12 +36,8 @@ def get_filters_cond(doctype, filters, conditions): return cond def get_match_cond(doctype, searchfield = 'name'): - meta = webnotes.get_doctype(doctype) - from webnotes.widgets.search import get_std_fields_list - fields = get_std_fields_list(meta, searchfield) - from webnotes.widgets.reportview import build_match_conditions - cond = build_match_conditions(doctype, fields) + cond = build_match_conditions(doctype) if cond: cond = ' and ' + cond