[minor] fix in query report linked doctype
This commit is contained in:
parent
1e8f7d512f
commit
134669cb40
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ def get_linked_doctypes(columns, data):
|
|||
|
||||
# remove doctype if column is empty
|
||||
for doctype, key in linked_doctypes.items():
|
||||
if not any(d[key] for d in data):
|
||||
if not any(d[key] for d in data if d):
|
||||
del linked_doctypes[doctype]
|
||||
|
||||
return linked_doctypes
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue