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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[FEAT-47002] Remove EE-restriction banner from custom_fields#new/edit
Aaron Contreras33c7339433fb
diff --git a/app/controllers/custom_fields_controller.rb b/app/controllers/custom_fields_controller.rbindex b9637d684c4..7d1e21b8330 100644--- a/app/controllers/custom_fields_controller.rb+++ b/app/controllers/custom_fields_controller.rb@@ -128,13 +128,7 @@ class CustomFieldsController < ApplicationControllerenddef get_custom_field_params- custom_field_params = permitted_params.custom_field-- if !EnterpriseToken.allows_to?(:multiselect_custom_fields)- custom_field_params.delete :multi_value- end-- custom_field_params+ permitted_params.custom_fieldenddef find_custom_optiondiff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erbindex 9dc889ede47..e8c7f0e3aa3 100644--- a/app/views/custom_fields/_form.html.erb+++ b/app/views/custom_fields/_form.html.erb@@ -61,27 +61,9 @@ See COPYRIGHT and LICENSE files for more details.</div><% if @custom_field.new_record? || @custom_field.list? || @custom_field.multi_value_possible? %>- <div class="form--field" id="custom_field_multi_select" style="display:none">- <% if EnterpriseToken.allows_to?(:multiselect_custom_fields) %>- <%= f.check_box :multi_value %>- <% else %>- <label class="form--label" for="custom_field_multi_value_disabled"><%= CustomField.human_attribute_name('multi_value') %></label>- <span class="form--field-container">- <span class="form--check-box-container">- <input disabled="disabled" class="-cf-ignore-disabled form--check-box" type="checkbox" name="custom_field_multi_value_disabled">- </span>- </span>- <div class="form--field-instructions -no-italic -xwide">- <%= angular_component_tag 'op-enterprise-banner',- inputs: {- collapsible: true,- textMessage: t('text_wp_custom_field_html'),- moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:custom_field_multiselect][:href],- }- %>- </div>- <% end %>- </div>+ <div class="form--field" id="custom_field_multi_select" style="display:none">+ <%= f.check_box :multi_value %>+ </div><fieldset class="form--fieldset" id="custom_field_possible_values_attributes"><legend class="form--fieldset-legend"><%= I18n.t("activerecord.attributes.custom_field.possible_values") %></legend>