* Addressbook - Merging contacts now keeps all distribution lists

This commit is contained in:
nathangray 2017-09-26 11:05:19 -06:00
parent a4fdc052ab
commit 2d57801c6a

View File

@ -1890,6 +1890,13 @@ class Contacts extends Contacts\Storage
break;
}
}
// Merge distribution lists
$lists = $this->read_distributionlist(array($contact['id']));
foreach($lists as $list_id => $list_name)
{
parent::add2list($target['id'], $list_id);
}
}
if (!$this->save($target)) return 0;