This commit is contained in:
Laurent Destailleur 2013-08-24 22:45:02 +02:00
parent 8c90ad8afa
commit 70f7321d51

View File

@ -141,7 +141,7 @@ class InterfaceMailmanSpipsynchro
{ {
dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id);
// We add subscription if new email or new type (new type may means more mailing-list to subscribe) // We add subscription if we change category (new category may means more mailing-list to subscribe)
if ($object->linkto->add_to_abo() < 0) if ($object->linkto->add_to_abo() < 0)
{ {
$this->error=$object->linkto->error; $this->error=$object->linkto->error;
@ -159,6 +159,7 @@ class InterfaceMailmanSpipsynchro
{ {
dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id);
// We remove subscription if we change category (lessw category may means less mailing-list to subscribe)
if ($object->unlinkoff->del_to_abo() < 0) if ($object->unlinkoff->del_to_abo() < 0)
{ {
$this->error=$object->unlinkoff->error; $this->error=$object->unlinkoff->error;