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

[#52147] repair sort helper specs

Tobias Dillmann1cf4c2b52425
diff --git a/app/helpers/sort_helper.rb b/app/helpers/sort_helper.rb
index c011d5d59c3..bc7fe0078ab 100644
--- a/app/helpers/sort_helper.rb
+++ b/app/helpers/sort_helper.rb
@@ -291,6 +291,7 @@ module SortHelper
caption ||= column.to_s.humanize
sort_options = sort_by_options(column, nil, default_order, allowed_params:, **html_options)
+ html_options.delete(:param) # remove the `param` as we do not want it on our link-tag
link_to_content_update(h(caption), sort_options, html_options.merge(rel: :nofollow))
end