From 5e2520fc5e84d9f4a3844a2347d601edc8a1a222 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 9 Feb 2021 15:10:32 +0100 Subject: [PATCH] Follow #3333 - Tree select has no mutli select on ticket selector for overview, triggers, ... - clone original attributes/do not overwrite original attributes. --- .../app/controllers/_ui_element/tree_select_search.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 8116b5522..7022ad61d 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,6 +1,9 @@ # coffeelint: disable=camel_case_classes class App.UiElement.tree_select_search extends App.UiElement.ApplicationUiElement - @render: (attribute, params) -> + @render: (localAttribute, params) -> + + # clone original attribute + attribute = clone(localAttribute) # set multiple option attribute.multiple = 'multiple'