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

Merge branch 'release/14.6' into fix/set-path-without-referer

Oliver Günther7a8577d9ee19
diff --cc app/menus/work_packages/menu.rb
index c8c72798d2e,c06a558c54a..ca1c96b5992
--- a/app/menus/work_packages/menu.rb
+++ b/app/menus/work_packages/menu.rb
@@@ -65,14 -66,15 +65,15 @@@ module WorkPackage
def selected?(query_params)
return true if check_for_redirected_urls(query_params)
+ return true if highlight_on_work_packages?(query_params)
- if query_params[:work_package_default] &&
+ super
+ end
+
+ def highlight_on_work_packages?(query_params)
+ query_params[:work_package_default] &&
(%i[filters query_props query_id name].none? { |k| params.key? k }) &&
- String(@request.referer).include?("work_packages")
+ params[:on_work_package_path] == "true"
- return true
- end
-
- super
end
def ee_upsale_path(query_params)