Commit 1c8c7cc0 authored by Nabin Hait's avatar Nabin Hait
Browse files

Merge branch 'hotfix'

parents 10076fc5 6fa9f81e
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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()
......
......@@ -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;
}
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment