diff --git a/lib/open_project/text_formatting/filters/mention_filter.rb b/lib/open_project/text_formatting/filters/mention_filter.rb index 7f11e8bfd45..3fadec73ada 100644 --- a/lib/open_project/text_formatting/filters/mention_filter.rb +++ b/lib/open_project/text_formatting/filters/mention_filter.rb @@ -72,7 +72,7 @@ module OpenProject::TextFormatting end def mention_work_package_ids - doc.css('mention[data-type="work_package"]').filter_map { |m| mention_id(m)&.to_i }.uniq + doc.css('mention[data-type="work_package"]').filter_map { mention_id(it)&.to_i }.uniq end def mention_anchor(mention) diff --git a/lib/open_project/text_formatting/matchers/link_handlers/work_packages.rb b/lib/open_project/text_formatting/matchers/link_handlers/work_packages.rb index 09c41d04bdf..42e8ab769b1 100644 --- a/lib/open_project/text_formatting/matchers/link_handlers/work_packages.rb +++ b/lib/open_project/text_formatting/matchers/link_handlers/work_packages.rb @@ -38,9 +38,6 @@ module OpenProject::TextFormatting::Matchers # Shared with the PDF-export subclass in `app/models/work_package/exports/macros/links.rb`. HASH_TRIGGERS = %w[# ## ###].freeze - # Builds the user-facing label for the static-anchor variant of `##`/ - # `###` macros. Centralised so the PatternMatcherFilter path here and - # the ``-envelope path in `MentionFilter` stay in lockstep. def self.compose_static_macro_label(work_package, label:, detailed:) parts = [] parts << work_package.status&.name if detailed