From 2c77e73c392563864f665937af048d846b432359 Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Wed, 27 Apr 2022 16:58:50 +0200 Subject: [PATCH] Fixes #4067 - Javascript error undefined multiple while opening core workflow with tree selects. --- .../app/controllers/_ui_element/tree_select_search.coffee | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_ui_element/tree_select_search.coffee b/app/assets/javascripts/app/controllers/_ui_element/tree_select_search.coffee index ff35e0274..1210e107a 100644 --- a/app/assets/javascripts/app/controllers/_ui_element/tree_select_search.coffee +++ b/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