Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When debugging why people get emails even though the email selector isn't checked reveals that it adds the notifier no matter what flag exists. This patch limits the notifier to only add the email notifier when a relevant CT is sending a message.
For more info, see #2001702: Message Subscribe sends emails regardless of flag checkmarks in notification-settings
Comment | File | Size | Author |
---|---|---|---|
2001702-message_subscribe_email_flag-14.patch | 1.71 KB | japerry | |
Comments
Comment #1
ezra-g CreditAttribution: ezra-g commentedMarking as "needs review."
Comment #2
amitaibuI think this is a duplicate of #1828184: Message Subscribe sends emails regardless of context so marking accordingly. (If not, please re-open).
Since you took the time to patch, here's a quick review.
$ct => $entity_type.
This looks *very* odd ;)
Also extra bonus points for tests.