Fix bug dict has no attribute of fieldname
This commit is contained in:
parent
ec3ca934f8
commit
cd4ae61220
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ def get_open_count(doctype, name, items=[]):
|
|||
continue
|
||||
|
||||
filters = get_filters_for(d)
|
||||
fieldname = links.get("non_standard_fieldnames", {}).get(d, links.fieldname)
|
||||
fieldname = links.get("non_standard_fieldnames", {}).get(d, links.get('fieldname'))
|
||||
data = {"name": d}
|
||||
if filters:
|
||||
# get the fieldname for the current document
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue