Commit c37651f3 authored by Patrick Barroca's avatar Patrick Barroca

dev #46014 : fix test failures

parent 41b20f6c
......@@ -306,12 +306,12 @@ class Class_Newsletter extends Storm_Model_Abstract {
return $title;
}
public function unsubscribeUser($user) {
Class_UserGroupMembership::deleteBy(['user_id' => $user->getId(),
'user_group_id' => $this->getDedicatedGroup()->getId()]);
$this->unsubscribeByMail($user->getMail());
}
protected function subscribeToDedicatedGroup($user) {
$this->getDedicatedGroup()->addUser($user);
$this->save();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment