From f958537e55008f79977acc17ef006640537ed91b Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 18 Apr 2013 15:45:00 +0200 Subject: [PATCH] Fix bug where contacts were moved instead of copied. Internal date need to be cleared when converting from kolab to Roundcube format (Bug #1767) --- plugins/kolab_addressbook/lib/rcube_kolab_contacts.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php index 97255030..4ff585f9 100644 --- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php +++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php @@ -1080,7 +1080,12 @@ class rcube_kolab_contacts extends rcube_addressbook $record['pgppublickey'] = substr($record['pgppublickey'], 0, 140) . '...'; // remove empty fields - return array_filter($record); + $record = array_filter($record); + + // remove kolab_storage internal data + unset($record['_msguid'], $record['_formatobj'], $record['_mailbox'], $record['_type'], $record['_size']); + + return $record; } /**