Merge pull request #16674 from deepeshgarg007/address-rep-fix

fix: Address and contact report
This commit is contained in:
Nabin Hait 2019-02-15 14:26:16 +05:30 committed by GitHub
commit aa80a223d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,8 @@ def get_party_details(party_type, party_list, doctype, party_details):
records = frappe.get_list(doctype, filters=filters, fields=fields, as_list=True)
for d in records:
details = party_details.get(d[0])
details.setdefault(frappe.scrub(doctype), []).append(d[1:])
if details:
details.setdefault(frappe.scrub(doctype), []).append(d[1:])
return party_details