From: Anne Limoges Date: Sat, 8 Mar 2014 13:38:55 +0000 (+0100) Subject: Unsubscribes user from groupNL when unsubscribing from group. X-Git-Tag: xorg/1.1.12~12 X-Git-Url: http://git.polytechnique.org/?p=platal.git;a=commitdiff_plain;h=ce4c816ec017cefb265860c366b56e7425c61cb6 Unsubscribes user from groupNL when unsubscribing from group. --- diff --git a/modules/xnetgrp.php b/modules/xnetgrp.php index cc39f46..0a40bae 100644 --- a/modules/xnetgrp.php +++ b/modules/xnetgrp.php @@ -1222,6 +1222,11 @@ class XnetGrpModule extends PLModule $mailer->send(); } + $nl = Newsletter::forGroup($globals->asso('shortname')); + if (!is_null($nl)) { + $nl->unsubscribe(null, S::i('uid')); + } + $domain = $globals->asso('mail_domain'); if (!$domain) { return true;