Merge pull request #6271 from rohitwaghchaure/fix_report_is_not_loading
[Fix] Report Addresses And Contacts not working
This commit is contained in:
commit
573750d6f4
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ 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 = party_details.get(d[0]) or {}
|
||||
details.setdefault(frappe.scrub(doctype), []).append(d[1:])
|
||||
|
||||
return party_details
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue