Fixes #3242 - Reporting does not update ticket list when the ticket count is the same (frontend cache bug).

This commit is contained in:
Rolf Schmidt 2020-10-08 14:16:44 +02:00 committed by Thorsten Eckel
parent b9755a4956
commit 87d55bdfed

View file

@ -117,11 +117,11 @@ class Graph extends App.ControllerContent
dataNew[key] = value dataNew[key] = value
@ui.storeParams() @ui.storeParams()
if !@lastNewData if !@lastParams
@lastNewData = {} @lastParams = {}
return if @lastNewData && JSON.stringify(dataNew) is JSON.stringify(@lastNewData) return if @lastParams && JSON.stringify(@params) is JSON.stringify(@lastParams)
@lastNewData = dataNew @lastParams = $.extend(true, {}, @params)
@draw(dataNew) @draw(dataNew)
t = new Date t = new Date