fix(Report): Column key for child columns must be doctype:name (#6256)

- Column key should be same as the key sent by server for child rows
This commit is contained in:
Faris Ansari 2018-10-15 12:45:29 +05:30 committed by GitHub
parent 1f1a1ec810
commit efe2b281cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -774,8 +774,11 @@ frappe.views.ReportView = class ReportView extends frappe.views.ListView {
const width = (docfield ? cint(docfield.width) : null) || null;
// child table column
const id = doctype !== this.doctype ? `${doctype}:${fieldname}` : fieldname;
return {
id: fieldname,
id: id,
field: fieldname,
name: title,
content: title,