Merge pull request #13498 from surajshetty3416/fix-charts-rendering
This commit is contained in:
commit
724923afab
1 changed files with 6 additions and 2 deletions
|
|
@ -410,7 +410,7 @@ frappe.views.ReportView = class ReportView extends frappe.views.ListView {
|
|||
x_fields.push({
|
||||
label: col.content,
|
||||
fieldname: col.id,
|
||||
value: col.id,
|
||||
value: col.id,
|
||||
});
|
||||
|
||||
// numeric values in y
|
||||
|
|
@ -1024,8 +1024,12 @@ frappe.views.ReportView = class ReportView extends frappe.views.ListView {
|
|||
return docfield.fieldtype === 'Date' ? 'right' : 'left';
|
||||
})();
|
||||
|
||||
let id = fieldname;
|
||||
|
||||
// child table column
|
||||
const id = doctype !== this.doctype ? `${doctype}:${fieldname}` : fieldname;
|
||||
if (doctype !== this.doctype && fieldname !== '_aggregate_column') {
|
||||
id = `${doctype}:${fieldname}`;
|
||||
}
|
||||
|
||||
let width = (docfield ? cint(docfield.width) : null) || null;
|
||||
if (this.report_doc) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue