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

Also change render call in Projects::QueriesController

Klaus Zanders28baf2090e84
diff --git a/app/controllers/projects/queries_controller.rb b/app/controllers/projects/queries_controller.rb
index 253985d51ab..31c8ca8d73c 100644
--- a/app/controllers/projects/queries_controller.rb
+++ b/app/controllers/projects/queries_controller.rb
@@ -83,10 +83,9 @@ class Projects::QueriesController < ApplicationController
respond_to do |format|
format.turbo_stream do
# Load shares and replace the modal
- strategy = SharingStrategies::ProjectQueryStrategy.new(@query, user: current_user)
- shares = strategy.shares_query({}).results
- replace_via_turbo_stream(component: Shares::ModalBodyComponent.new(strategy:, shares:, errors: []))
- render turbo_stream: turbo_streams, status:
+ strategy = SharingStrategies::ProjectQueryStrategy.new(@query, user: current_user, query_params: {})
+ replace_via_turbo_stream(component: Shares::ModalBodyComponent.new(strategy:, errors: []))
+ render turbo_stream: turbo_streams
end
format.html do