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

Merge branch 'task/54459-investigate-queries-and-filters-to-display-the-project-list-in-projects-attribute-settings-view' into task/54456-develop-a-strategy-on-how-to-reuse-the-current-project-list-implementation

Kabiru Mwenja455e4b283955
diff --cc app/controllers/admin/settings/project_custom_fields_controller.rb
index 6c169b4d0fb,f4efb8c51cd..9bfe0ebff1c
--- a/app/controllers/admin/settings/project_custom_fields_controller.rb
+++ b/app/controllers/admin/settings/project_custom_fields_controller.rb
@@@ -59,14 -59,7 +59,14 @@@ module Admin::Setting
respond_to :html
end
- def edit; end
+ def edit
+ @project_custom_field_mapping_query = Queries::Projects::ProjectQuery.new(
+ name: "project-custom-field-mapping-#{@custom_field.id}"
+ ) do |query|
- query.where(:available_project_attributes, "~", [@custom_field.id])
++ query.where(:available_project_attributes, "=", [@custom_field.id])
+ query.select :name
+ end
+ end
def move
call = CustomFields::UpdateService.new(user: current_user, model: @custom_field).call(