mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
5d8929a7c3
The mention filter previously dropped to the envelope's stored text when the recipient lacked view permission on the referenced work package, which left stale identifiers in mailer bodies after a project rename and diverged from the `#N` text-reference path on the same render. Adopts the two-SELECT pattern ResourceLinksMatcher uses for `#N` references: a single unscoped batched lookup for label resolution plus a visibility-scoped id pluck for anchor gating. Invisible WPs render as plain text with the current formatted_id; the per-mention `WorkPackage.visible.find_by` is gone.