소스 검색

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

version-14
Makarand Bauskar 7 년 전
committed by Nabin Hait
부모
커밋
3c7be2fd04
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); newrow.id = newrow.name ? newrow.name : ("_" + newrow._id);
this.data.push(newrow); 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; this.total_row_id = this.data[this.data.length - 1].id;
} }
}, },


불러오는 중...
취소
저장