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

Refactor `#belonging_wps_url`

Aaron Contreras14fe424becef
diff --git a/app/controllers/types_controller.rb b/app/controllers/types_controller.rb
index 1def471e953..1cdb80ac054 100644
--- a/app/controllers/types_controller.rb
+++ b/app/controllers/types_controller.rb
@@ -191,7 +191,7 @@ class TypesController < ApplicationController
end
def belonging_wps_url(type_id)
- work_packages_path query_props: "{\"f\":[{\"n\":\"type\",\"o\":\"=\",\"v\":[#{type_id}]}]}"
+ work_packages_path query_props: { f: [{ n: "type", o: "=", v: [type_id] }] }.to_json
end
def archived_projects