浏览代码

[hotfix] TypeError: Cannot read property 'id' of undefined (#4229)

version-14
Makarand Bauskar 7 年前
committed by Nabin Hait
父节点
当前提交
e4c0cc5709
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/public/js/frappe/views/reports/query_report.js

+ 1
- 1
frappe/public/js/frappe/views/reports/query_report.js 查看文件

@@ -591,7 +591,7 @@ frappe.views.QueryReport = Class.extend({
newrow.id = newrow.name ? newrow.name : ("_" + newrow._id);
this.data.push(newrow);
}
if(this.report_doc.add_total_row) {
if(this.data.length && this.report_doc.add_total_row) {
this.total_row_id = this.data[this.data.length - 1].id;
}
},


正在加载...
取消
保存