Bug 23626: (follow-up) Fix JS when not viewing results

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Nick 2019-10-10 16:40:55 +00:00 committed by Martin Renvoize
parent df32a48c27
commit 85b5abcc4e
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 1 additions and 1 deletions

View 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 {