Browse Source

Fixes #4067 - Javascript error undefined multiple while opening core workflow with tree selects.

Rolf Schmidt 2 years ago
parent
commit
f121f1fa74

+ 2 - 4
app/assets/javascripts/app/controllers/_ui_element/tree_select_search.coffee

@@ -1,9 +1,7 @@
 # coffeelint: disable=camel_case_classes
 class App.UiElement.tree_select_search extends App.UiElement.ApplicationUiElement
-  @render: (localAttribute, params) ->
-
-    # clone original attribute
-    attribute = clone(localAttribute)
+  @render: (attributeConfig, params) ->
+    attribute = $.extend({}, attributeConfig)
 
     # set multiple option
     if attribute.multiple