Follow up for issue #1133 - use correct constructor name to work also in precompiled environments.
This commit is contained in:
parent
d52634701d
commit
3b27a22364
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue