[fix] query report dict key fetch

This commit is contained in:
Prateeksha Singh 2018-04-25 13:18:05 +05:30
parent e95df5491e
commit 6dfc888f82

View file

@ -293,7 +293,7 @@ def has_match(row, linked_doctypes, doctype_match_filters, ref_doctype, if_owner
if dt=="User" and columns_dict[idx]==columns_dict.get("owner"):
continue
if dt in match_filters and row[idx] not in match_filters[dt] and frappe.db.exists(dt, row[idx]):
if dt in match_filters and row.get(idx) not in match_filters.get(dt) and frappe.db.exists(dt, row.get(idx)):
match = False
break