Merge pull request #7325 from deepeshgarg007/custom-link-develop
fix(query_report): Link field fixes for custom reports
This commit is contained in:
commit
63508953f2
2 changed files with 2 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ def add_data_to_custom_columns(columns, result):
|
|||
fieldname = column['fieldname']
|
||||
key = (column['doctype'], fieldname)
|
||||
link_field = column['link_field']
|
||||
row[fieldname] = custom_fields_data.get(key, {}).get(row[link_field])
|
||||
row[fieldname] = custom_fields_data.get(key, {}).get(row.get(link_field))
|
||||
|
||||
return data
|
||||
|
||||
|
|
|
|||
|
|
@ -1014,6 +1014,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
|
|||
label: df.label,
|
||||
link_field: this.doctype_field_map[values.doctype],
|
||||
doctype: values.doctype,
|
||||
options: df.fieldtype === "Link" ? values.doctype : undefined,
|
||||
width: 100
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue