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

Skip positional arg

Oliver Günther76f73ebd7511
diff --git a/lib/api/v3/work_packages/work_packages_api.rb b/lib/api/v3/work_packages/work_packages_api.rb
index 7bfd05c1ccf..a8ee12d58ce 100644
--- a/lib/api/v3/work_packages/work_packages_api.rb
+++ b/lib/api/v3/work_packages/work_packages_api.rb
@@ -77,7 +77,7 @@ module API
@work_package = WorkPackage.find(declared_params[:id])
authorize(:view_work_packages, context: @work_package.project) do
- raise API::Errors::NotFound.new nil, model: :work_package
+ raise API::Errors::NotFound.new model: :work_package
end
end