From 8831427b7fc93f35059dfcfc1745a8aabecf57a8 Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Fri, 21 May 2021 14:19:58 +0200 Subject: [PATCH] Fix multiple user selection in report templates [SCI-5748] --- app/components/reports/project_members_input_component.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/reports/project_members_input_component.html.erb b/app/components/reports/project_members_input_component.html.erb index 2233e65b4..0a631a9a2 100644 --- a/app/components/reports/project_members_input_component.html.erb +++ b/app/components/reports/project_members_input_component.html.erb @@ -1,7 +1,7 @@ <% if @editing %>
<%= label_tag @name, @label %> - <%= select_tag @name, options_from_collection_for_select(@project_members, :id, :name), placeholder: @placeholder, class: 'sci-input-field report-template-value-dropdown', data: { type: 'ProjectMembersInputComponent' } %> + <%= select_tag @name, options_from_collection_for_select(@project_members, :id, :name, @value), placeholder: @placeholder, class: 'sci-input-field report-template-value-dropdown', data: { type: 'ProjectMembersInputComponent' }, multiple: true %>
<% else %> <% @project_members.where(id: @value).each do |member| %>