MailmanSpip & Adherent : add and remove mailman list
This commit is contained in:
parent
45392583a2
commit
6c08cc6b6a
@ -107,7 +107,7 @@ class InterfaceMailmanSpipsynchro extends DolibarrTriggers
|
|||||||
// Add user into some linked tools (mailman, spip, etc...)
|
// Add user into some linked tools (mailman, spip, etc...)
|
||||||
if (($object->oldcopy->email != $object->email) || ($object->oldcopy->typeid != $object->typeid)) // TODO Do del/add also if type change
|
if (($object->oldcopy->email != $object->email) || ($object->oldcopy->typeid != $object->typeid)) // TODO Do del/add also if type change
|
||||||
{
|
{
|
||||||
if (is_object($object->oldcopy) && ($object->oldcopy->email != $object->email)) // If email has changed we delete mailman subscription for old email
|
if (is_object($object->oldcopy) && (($object->oldcopy->email != $object->email) || ($object->oldcopy->typeid != $object->typeid))) // If email has changed or if list has changed we delete mailman subscription for old email
|
||||||
{
|
{
|
||||||
if ($object->oldcopy->del_to_abo() < 0)
|
if ($object->oldcopy->del_to_abo() < 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -354,7 +354,7 @@ class MailmanSpip
|
|||||||
if (! empty($tmp[2]))
|
if (! empty($tmp[2]))
|
||||||
{
|
{
|
||||||
$list=$tmp[2];
|
$list=$tmp[2];
|
||||||
if ($object->element == 'member' && $tmp[0] == 'TYPE' && $object->type != $tmp[1]) // Filter on member type label
|
if ($object->element == 'member' && $tmp[0] == 'TYPE' && $object->type == $tmp[1]) // Filter on member type label
|
||||||
{
|
{
|
||||||
dol_syslog("We ignore list ".$list." because object member type ".$object->type." does not match ".$tmp[1], LOG_DEBUG);
|
dol_syslog("We ignore list ".$list." because object member type ".$object->type." does not match ".$tmp[1], LOG_DEBUG);
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user