From 2d57801c6aa1e3ec3aa2b8efeddecefdfd510c8e Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 26 Sep 2017 11:05:19 -0600 Subject: [PATCH] * Addressbook - Merging contacts now keeps all distribution lists --- api/src/Contacts.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/src/Contacts.php b/api/src/Contacts.php index 58587d212e..8b130d3891 100755 --- a/api/src/Contacts.php +++ b/api/src/Contacts.php @@ -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;