From e4c0cc57096c24a708010c9ddd81c45278c7ecb6 Mon Sep 17 00:00:00 2001 From: Makarand Bauskar Date: Mon, 2 Oct 2017 11:41:41 +0530 Subject: [PATCH 1/2] [hotfix] TypeError: Cannot read property 'id' of undefined (#4229) --- frappe/public/js/frappe/views/reports/query_report.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/views/reports/query_report.js b/frappe/public/js/frappe/views/reports/query_report.js index 8b1a801099..dee3171d8c 100644 --- a/frappe/public/js/frappe/views/reports/query_report.js +++ b/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; } }, From 6fa9f81e2bccf17656fa566ab1843d57f04924ea Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 2 Oct 2017 12:37:30 +0600 Subject: [PATCH 2/2] bumped to version 9.0.8 --- frappe/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/__init__.py b/frappe/__init__.py index f049e8b85c..1b7a613d5f 100644 --- a/frappe/__init__.py +++ b/frappe/__init__.py @@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json from .exceptions import * from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template -__version__ = '9.0.7' +__version__ = '9.0.8' __title__ = "Frappe Framework" local = Local()