From 5c2f81ecb67ad0e22a0965c027c607192e22e4b2 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 11 Sep 2014 14:43:30 +0530 Subject: [PATCH 1/2] Corrected spelling --- frappe/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/hooks.py b/frappe/hooks.py index d0b51a5da0..4e00dfd5da 100644 --- a/frappe/hooks.py +++ b/frappe/hooks.py @@ -1,7 +1,7 @@ app_name = "frappe" app_title = "Frappe Framework" app_publisher = "Web Notes Technologies Pvt. Ltd." -app_description = "Full Stack Web Application Framwork in Python" +app_description = "Full Stack Web Application Framework in Python" app_icon = "assets/frappe/images/frappe.svg" app_version = "4.3.0" app_color = "#3498db" From 993d0ae57ad71658d886f003cca7e58021a4ca93 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 11 Sep 2014 15:22:05 +0530 Subject: [PATCH 2/2] Apply user restrictions in query report only if rows exists --- frappe/widgets/query_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/widgets/query_report.py b/frappe/widgets/query_report.py index 825b97e7c2..dbeb93d13b 100644 --- a/frappe/widgets/query_report.py +++ b/frappe/widgets/query_report.py @@ -86,7 +86,7 @@ def run(report_name, filters=()): method_name = get_report_module_dotted_path(module, report.name) + ".execute" columns, result = frappe.get_attr(method_name)(frappe._dict(filters)) - if report.apply_user_permissions: + if report.apply_user_permissions and result: result = get_filtered_data(report.ref_doctype, columns, result) if cint(report.add_total_row) and result: