mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
add an unsubscribe record when member unsubscribe a newsletter.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@40811 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
23a2a46532
commit
48939b8102
@ -101,6 +101,8 @@ class Unsubscribe_Controller extends Page_Controller {
|
|||||||
protected function unsubscribeFromList( $member, $list ) {
|
protected function unsubscribeFromList( $member, $list ) {
|
||||||
// track unsubscriptions
|
// track unsubscriptions
|
||||||
$member->Groups()->remove( $list->GroupID );
|
$member->Groups()->remove( $list->GroupID );
|
||||||
|
$unsubscribeRecord = new Member_UnsubscribeRecord();
|
||||||
|
$unsubscribeRecord->unsubscribe($member, $list);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user