Follow up for issue #1133 - use correct constructor name to work also in precompiled environments.

This commit is contained in:
Martin Edenhofer 2018-03-28 10:02:06 +02:00
parent d52634701d
commit 3b27a22364

View file

@ -579,14 +579,15 @@ class App.ControllerTable extends App.Controller
callback: (id) => callback: (id) =>
item = @model.find(id) item = @model.find(id)
item.name = "Clone: #{item.name}" item.name = "Clone: #{item.name}"
new App.ControllerGenericNew new App.ControllerGenericNew(
item: item item: item
pageData: pageData:
object: item.constructor.name object: item.constructor.className
callback: => callback: =>
@renderTableFull() @renderTableFull()
genericObject: item.constructor.name genericObject: item.constructor.className
container: @container container: @container
)
if @destroy if @destroy
@actions.push @actions.push