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

"Someone reports a post" notification setting has no effect

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.3, 3.1.4
    • Fix Version/s: 3.1.7-RC1
    • Component/s: Notification System
    • Labels:
      None
    • Environment:
      PHP 5.3.24, MySQL 5.0.96; PHP 5.6.3, MySQL 5.6.21

      Description

      report_post notifications are sent to moderators even if they have the corresponding notification disabled in the UCP. I believe this is caused by the use of self::$notification_option['id'] in post_in_queue::find_users_for_notification(), which is inherited by report_post - i.e. it causes the report_post notification to use the setting for notification.type.needs_approval instead of notification.type.report. Changing it to static::$notification_option['id'] appears to fix the problem.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: