Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
ef6dde2d62
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ class InterfaceMailmanSpipsynchro extends DolibarrTriggers
|
|||
if (($object->oldcopy->email != $object->email) || ($object->oldcopy->typeid != $object->typeid)) {
|
||||
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
|
||||
// $object->oldcopy may be a stdClass and not original object depending on copy type, so we realod a new object to run the del_to_abo()
|
||||
$tmpmember = new Adherent($db);
|
||||
$tmpmember = new Adherent($this->db);
|
||||
$tmpmember->fetch($object->oldcopy->id);
|
||||
if ($tmpmember->del_to_abo() < 0) {
|
||||
$this->errors = $tmpmember->errors;
|
||||
|
|
|
|||
Loading…
Reference in a new issue