Merge pull request #5490 from pratu16x7/hotfix

[hotfix] query report dict key fetch
This commit is contained in:
Prateeksha Singh 2018-04-25 13:19:54 +05:30 committed by GitHub
commit 4eab463969
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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