Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not call link_to_reportable if reportable does not exist #16063

Merged
merged 1 commit into from
Apr 29, 2024

Commits on Apr 26, 2024

  1. 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 openSUSE#16062
    krauselukas committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    e7a4140 View commit details
    Browse the repository at this point in the history