Skip to content
Snippets Groups Projects
Commit 06615715 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Elmar Ludwig
Browse files

only remove the notifications for one course not for all, fixes #2024

Closes #2024

Merge request studip/studip!1316
parent 221e61bc
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
......@@ -152,7 +152,10 @@ class CourseMember extends SimpleORMap implements PrivacyObject
public function cbRemoveNotifications()
{
CourseMemberNotification::deleteBySQL('user_id = ?', [$this->user_id]);
CourseMemberNotification::deleteBySQL(
'user_id = ? AND seminar_id = ?',
[$this->user_id, $this->seminar_id]
);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment