-
Notifications
You must be signed in to change notification settings - Fork 171
Issue #3162557 by tBKoT, Kingdutch: Update delete notification condition #1965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #3162557 by tBKoT, Kingdutch: Update delete notification condition #1965
Conversation
…eate update hook for removing not used notifications.
ribel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
|
Hey @ronaldtebrake, |
|
Hi @ribel, nice work looks good to me also in 8.5! :) |
…ion. Create update hook for removing not used notifications. (#1965)
…ion. Create update hook for removing not used notifications. (#1965)
|
🍒 picked to 8.x and 9.x |
Problem
There is an error in \Drupal\activity_creator\ActivityNotifications::deleteNotificationsByIds. On line 260 of ActivityNotifications.php the line ->condition('aid', $activity_ids) is used, where $activity_ids is an array. However, the default comparison operator for condition is = which causes issues in the query, resulting in unremoved activities.
Solution
Issue tracker
https://www.drupal.org/project/social/issues/3162557