Bug 23626: (follow-up) Fix JS when not viewing results
authorNick <nick@bywatersolutions.com>
Thu, 10 Oct 2019 16:40:55 +0000 (16:40 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 11 Oct 2019 09:51:03 +0000 (10:51 +0100)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt

index cbb846a..cac8ccb 100644 (file)
@@ -1161,7 +1161,7 @@ canned reports and writing custom SQL reports.</p>
         $(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 {