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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#61126] remove unneeded attribute
Tobias Dillmann90bdd9a1feeb
diff --git a/lib/open_project/object_linking.rb b/lib/open_project/object_linking.rbindex 80c34212216..c0f8a137e01 100644--- a/lib/open_project/object_linking.rb+++ b/lib/open_project/object_linking.rb@@ -51,7 +51,7 @@ module OpenProjectname = options.delete(:name) { user.name }options[:title] ||= I18n.t(:label_user_named, name:)- add_hover_card_options(user, options, only_path:, clazz_key: :class)+ add_hover_card_options(user, options, only_path:)link_to(name, user_url(user, only_path:), options)end@@ -146,7 +146,7 @@ module OpenProject# Accepts a user and an options hash. Will apply a hover card config for the user to the options hash.# Will not do anything if `hover_card` is set to false within the options.# You can use this method if you want to render a link and apply a user hover card to it.- def add_hover_card_options(user, options, only_path: true, clazz_key: :classes)+ def add_hover_card_options(user, options, only_path: true)if options.delete(:hover_card) { true } && user.is_a?(User)options[:data] ||= {}