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

This commit is contained in:
Oliver Günther
2024-10-09 12:08:06 +02:00
committed by GitHub
+7 -6
View File
@@ -65,16 +65,17 @@ module WorkPackages
def selected?(query_params)
return true if check_for_redirected_urls(query_params)
if query_params[:work_package_default] &&
(%i[filters query_props query_id name].none? { |k| params.key? k }) &&
params[:on_work_package_path] == "true"
return true
end
return true if highlight_on_work_packages?(query_params)
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 }) &&
params[:on_work_package_path] == "true"
end
def ee_upsale_path(query_params)
share_upsale_work_packages_path({ name: query_params[:name] })
end