Skip to content
Commit e7a4140e authored by Lukas Krause's avatar Lukas Krause
Browse files

Do not call `link_to_reportable` if reportable does not exist

We call the `link_to_reportables` helper on the report show view.
This throws an `nil` exception when the reportable is deleted,
since the `reportable_type` gets nullified as well.
`link_to_reportable` works in on the email notification since the
`reportable_type` is still available from the event payload, but
we cannot retrieve it from the report record.

Fixes #16062
parent a0ef9a96
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment