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 going to the Notifications Setting page, tab Topics you can see topics that you have followed.
If only a single user follows the topic, and has the Send email flag checked everything is fine.
Once a second user follows a topic, and has the send email checked, two rows of the same topic are shown, as in image.
I believe this is a Views issue, because the email flag relationship is set to any user. If you switch it to current user, the duplicates disappear.
Comment | File | Size | Author |
---|---|---|---|
share5.png | 69.23 KB | alcroito | |
share4.png | 36.11 KB | alcroito |
Comments
Comment #1
alcroito CreditAttribution: alcroito commentedComment #2
alcroito CreditAttribution: alcroito commentedComment #3
japerryThanks for the find, I'm writing tests for these this week so we'll see if I can capture this error within those and then make a fix for it!
Comment #5
japerryWell making a test for this was proving to be very difficult. However, I did figure out how to get the distinct in the view to correctly limit duplicates. We use distinct instead of the any/current user flag because users with admin access can view other users' notification settings. If we made the change suggested above, you wouldn't see the correct output when viewing someone elses page.