From 79f4870bd9d087316c4859e9f20e3f68f592649e Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 10 Oct 2019 16:40:55 +0000 Subject: [PATCH] Bug 23626: (follow-up) Fix JS when not viewing results Signed-off-by: Martin Renvoize (cherry picked from commit 85b5abcc4e8a0d41c0e286d1b9f7deba4905636c) Signed-off-by: Fridolin Somers --- .../prog/en/modules/reports/guided_reports_start.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index 8f8298edbf..b032dcf104 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -1060,7 +1060,7 @@ canned reports and writing custom SQL reports.

$(document).ready(function(){ $("body").on('click',".fetch_chart_data",function(){ - if( [% unlimited_total | $raw %] > 1000 ){ + if( [% unlimited_total || 0 | $raw %] > 1000 ){ if( confirm("Fetching full chart data for reports with many rows can cause performance issues. Are you sure you with to chart this report?") ){ return true; } else { -- 2.39.2