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

[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.rb
index b9637d684c4..7d1e21b8330 100644
--- a/app/controllers/custom_fields_controller.rb
+++ b/app/controllers/custom_fields_controller.rb
@@ -128,13 +128,7 @@ class CustomFieldsController < ApplicationController
end
def 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_field
end
def find_custom_option
diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb
index 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>