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

Use prefixed api paths to avoid unloaded class to be used

Oliver Güntherd55465ecc535
diff --git a/lib/api/v3/utilities/path_helper.rb b/lib/api/v3/utilities/path_helper.rb
index 4c1b2f78e43..0a2232269e8 100644
--- a/lib/api/v3/utilities/path_helper.rb
+++ b/lib/api/v3/utilities/path_helper.rb
@@ -461,12 +461,12 @@ module API
root_url = OpenProject::StaticRouting::StaticUrlHelpers.new.root_url
- root_url.gsub(duplicate_regexp, '') + ApiV3Path.send(path, arguments)
+ root_url.gsub(duplicate_regexp, '') + send(path, arguments)
end
end
def api_v3_paths
- ApiV3Path
+ ::API::V3::Utilities::PathHelper::ApiV3Path
end
end
end