From 87d55bdfed71f7989369ff2e5ab005d8daa485a6 Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Thu, 8 Oct 2020 14:16:44 +0200 Subject: [PATCH] Fixes #3242 - Reporting does not update ticket list when the ticket count is the same (frontend cache bug). --- app/assets/javascripts/app/controllers/report.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/app/controllers/report.coffee b/app/assets/javascripts/app/controllers/report.coffee index cd1436582..a55226285 100644 --- a/app/assets/javascripts/app/controllers/report.coffee +++ b/app/assets/javascripts/app/controllers/report.coffee @@ -117,11 +117,11 @@ class Graph extends App.ControllerContent dataNew[key] = value @ui.storeParams() - if !@lastNewData - @lastNewData = {} + if !@lastParams + @lastParams = {} - return if @lastNewData && JSON.stringify(dataNew) is JSON.stringify(@lastNewData) - @lastNewData = dataNew + return if @lastParams && JSON.stringify(@params) is JSON.stringify(@lastParams) + @lastParams = $.extend(true, {}, @params) @draw(dataNew) t = new Date