From 0da6d32b88e47e8dcacc6bff94fbe6499e3fd03e Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 20 May 2015 17:22:39 +0530 Subject: [PATCH] [fix] totals in query_report must not be clickable --- frappe/desk/query_report.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frappe/desk/query_report.py b/frappe/desk/query_report.py index 97718fe023..bf65068c59 100644 --- a/frappe/desk/query_report.py +++ b/frappe/desk/query_report.py @@ -126,12 +126,15 @@ def add_total_row(result, columns): if isinstance(columns[0], basestring): first_col = columns[0].split(":") if len(first_col) > 1: - first_col_fieldtype = first_col[1] + first_col_fieldtype = first_col[1].split("/")[0] else: first_col_fieldtype = columns[0].get("fieldtype") if first_col_fieldtype not in ["Currency", "Int", "Float", "Percent"]: - total_row[0] = "Total" + if first_col_fieldtype == "Link": + total_row[0] = "'Total'" + else: + total_row[0] = "Total" result.append(total_row) return result