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

https://community.openproject.org/work_packages/44100
pull/11738/head
Dombi Attila 2 years ago committed by Oliver Günther
parent a3bfea4cc9
commit 17f9767ec1
  1. 5
      app/helpers/custom_fields_helper.rb
  2. 6
      app/views/work_packages/bulk/edit.html.erb

@ -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

@ -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">

Loading…
Cancel
Save