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

fix tests broken in 4f6e521

Christophe Bliard19157b39765b
diff --git a/lib/api/v3/utilities/endpoints/index.rb b/lib/api/v3/utilities/endpoints/index.rb
index 529094b8869..9a4d41f0acd 100644
--- a/lib/api/v3/utilities/endpoints/index.rb
+++ b/lib/api/v3/utilities/endpoints/index.rb
@@ -61,7 +61,7 @@ module API
if query.valid?
render_success(query,
request.params,
- resolved_self_path,
+ resolved_self_path(request),
scope ? request.instance_exec(&scope) : model)
else
render_error(query)
@@ -106,7 +106,7 @@ module API
current_user: User.current)
end
- def resolved_self_path
+ def resolved_self_path(request)
self_path.respond_to?(:call) ? request.instance_exec(&self_path) : request.api_v3_paths.send(self_path)
end