Przeglądaj źródła

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

version-14
Makarand Bauskar 7 lat temu
committed by Nabin Hait
rodzic
commit
3c7be2fd04
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      frappe/public/js/frappe/views/reports/query_report.js

+ 1
- 1
frappe/public/js/frappe/views/reports/query_report.js Wyświetl plik

@@ -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;
}
},


Ładowanie…
Anuluj
Zapisz