Skip to content

Commit

Permalink
Merge pull request opf#17288 from opf/bug/59765-custom-fields-of-type…
Browse files Browse the repository at this point in the history
…-hierarchy-are-configurable-as-searchable

[#59765] removed searchable configuration for hierarchies
  • Loading branch information
Kharonus authored Nov 27, 2024
2 parents a4da407 + eef4120 commit a481275
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions app/forms/custom_fields/details_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ class DetailsForm < ApplicationForm
caption: I18n.t("custom_fields.instructions.is_filter")
)

details_form.check_box(
name: :searchable,
label: I18n.t("activerecord.attributes.custom_field.searchable"),
caption: I18n.t("custom_fields.instructions.searchable")
)

details_form.submit(name: :submit, label: I18n.t(:button_save), scheme: :default)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/open_project/custom_field_format_dependent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class CustomFieldFormatDependent
multiSelect: [:only, %w[list user version hierarchy]],
possibleValues: [:only, %w[list]],
regexp: [:except, %w[list bool date user version hierarchy]],
searchable: [:except, %w[bool date float int user version]],
searchable: [:except, %w[bool date float int user version hierarchy]],
textOrientation: [:only, %w[text]],
enterpriseBanner: [:only, %w[hierarchy]]
}.freeze
Expand Down

0 comments on commit a481275

Please sign in to comment.