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:
Normann Lou 2007-08-24 03:37:51 +00:00
parent 23a2a46532
commit 48939b8102

View File

@ -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);
} }
} }