Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-13893

Deleting post does not delete report notifications

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • 3.1.7-RC1
    • 3.1.4
    • None
    • None
    • PHP 5.6.3, MySQL 5.6.21

      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.

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

              Created:
              Updated:
              Resolved: