Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#44100] Bulk-Edit: Multi-select user-field not editable

Dombi Attila17f9767ec165
diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb
index 23495f4dbf0..9cf82a0a453 100644
--- a/app/helpers/custom_fields_helper.rb
+++ b/app/helpers/custom_fields_helper.rb
@@ -159,7 +159,10 @@ module CustomFieldsHelper
[I18n.t(:general_text_no), '0']]), id: field_id)
when 'list'
styled_select_tag(field_name,
- options_for_select([[I18n.t(:label_no_change_option), '']] + custom_field.possible_values_options(project)), id: field_id)
+ options_for_select([[I18n.t(:label_no_change_option),
+ '']] + custom_field.possible_values_options(project)),
+ id: field_id,
+ multiple: custom_field.multi_value?)
else
styled_text_field_tag(field_name, '', id: field_id)
end
diff --git a/app/views/work_packages/bulk/edit.html.erb b/app/views/work_packages/bulk/edit.html.erb
index c38cc22d4a4..ff827fe4026 100644
--- a/app/views/work_packages/bulk/edit.html.erb
+++ b/app/views/work_packages/bulk/edit.html.erb
@@ -102,9 +102,7 @@ See COPYRIGHT and LICENSE files for more details.
options_from_collection_for_select(@project.categories, :id, :name)) %>
</div>
</div>
- <% end %>
- <% #TODO: allow editing versions when multiple projects %>
- <% if @project %>
+ <% #TODO: allow editing versions when multiple projects %>
<div class="form--field">
<%= styled_label_tag :work_package_version_id, WorkPackage.human_attribute_name(:version) %>
<div class="form--field-container">
@@ -113,8 +111,6 @@ See COPYRIGHT and LICENSE files for more details.
version_options_for_select(@project.shared_versions.with_status_open.order_by_semver_name)) %>
</div>
</div>
- <% end %>
- <% if @project %>
<div class="form--field">
<%= styled_label_tag :work_package_budget_id, Budget.model_name.human %>
<div class="form--field-container">