From 3b27a223643bd5435e7bc1c0e81b6d4a65ba6fd3 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 28 Mar 2018 10:02:06 +0200 Subject: [PATCH] Follow up for issue #1133 - use correct constructor name to work also in precompiled environments. --- .../app/controllers/_application_controller_table.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller_table.coffee b/app/assets/javascripts/app/controllers/_application_controller_table.coffee index 28b7ec3fe..2fba8fa90 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_table.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_table.coffee @@ -579,14 +579,15 @@ class App.ControllerTable extends App.Controller callback: (id) => item = @model.find(id) item.name = "Clone: #{item.name}" - new App.ControllerGenericNew + new App.ControllerGenericNew( item: item pageData: - object: item.constructor.name + object: item.constructor.className callback: => @renderTableFull() - genericObject: item.constructor.name + genericObject: item.constructor.className container: @container + ) if @destroy @actions.push