Browse Source

Follow up f4300935f4913785d506734af0cd4c8339bab8d3 - Fixes #5138 - Add missing deep dup for comparisons.

Rolf Schmidt 10 months ago
parent
commit
6fa0ae2aaf
1 changed files with 3 additions and 6 deletions
  1. 3 6
      app/assets/javascripts/app/controllers/report.coffee

+ 3 - 6
app/assets/javascripts/app/controllers/report.coffee

@@ -354,10 +354,8 @@ class Download extends App.Controller
         number:
           [ callbackLinkToTicket, callbackTicketTitleAdd ]
 
-    if !@table
-      @table = new App.ControllerTable(params)
-    else
-      @table.update(objects: tickets)
+    @table.releaseController() if @table
+    @table = new App.ControllerTable(params)
 
   tableUpdate: =>
     state = {
@@ -368,11 +366,10 @@ class Download extends App.Controller
       day:                     @params.day
       timeRange:               @params.timeRange
       profiles:                @params.profileSelected
-      backends:                @params.backendSelected
       downloadBackendSelected: @params.downloadBackendSelected
     }
     return if _.isEqual(@lastState, state)
-    @lastState = state
+    @lastState = $.extend(true, {}, state)
 
     @ajax(
       id: 'report_download'