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] only show hover cards for users, not groups
Tobias Dillmann6be05dfca50b
diff --git a/lib/open_project/object_linking.rb b/lib/open_project/object_linking.rbindex 7f931a4f33c..8a928315d9e 100644--- a/lib/open_project/object_linking.rb+++ b/lib/open_project/object_linking.rb@@ -147,7 +147,7 @@ module OpenProject# 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)- if options.delete(:hover_card) { true }+ if options.delete(:hover_card) { true } && user.is_a?(User)options[clazz_key] = [options[clazz_key], "op-hover-card--preview-trigger"].compact.join(" ")options[:data] ||= {}