Merge pull request #7451 from deepeshgarg007/custom_column_develop

fix: Option fixes in custom columns for query reports
This commit is contained in:
Deepesh Garg 2019-05-11 12:30:26 +05:30 committed by GitHub
commit 4202d39b2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1020,7 +1020,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,
options: df.fieldtype === "Link" ? frappe.model.unscrub(df.fieldname) : undefined,
width: 100
});