Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-13893

Deleting post does not delete report notifications

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Duplicate
    • 3.1.4
    • 3.1.7-RC1
    • None
    • None
    • PHP 5.6.3, MySQL 5.6.21

    Description

      Deleting a post which has been reported causes the report to also be deleted, but leaves behind "Post reported" notifications, which link to non-existent posts/reports. This does not happen if the report is deleted before deleting the post.

      Adding 'notification.type.report_post' to the $delete_notifications_types array in function delete_posts() (functions_admin.php) appears to solve this problem.

      I was able to work around the issue by making this change via the core.delete_posts_after event in an extension.

      Attachments

        Issue Links

          Activity

            People

              prototech prototech [X] (Inactive)
              lexikos lexikos [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: