Branch 'roundcubemail-plugins-kolab-format2-horde5' - plugins/kolab_addressbook
Aleksander Machniak
machniak at kolabsys.com
Thu Apr 18 15:56:39 CEST 2013
plugins/kolab_addressbook/lib/rcube_kolab_contacts.php | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 60ff67133686ea575aff4811f59d604c1ebf2797
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Thu Apr 18 15:45:00 2013 +0200
Fix bug where contacts were moved instead of copied. Internal date
need to be cleared when converting from kolab to Roundcube format (Bug #1767)
diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
index 756f514..16a8811 100644
--- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
+++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
@@ -1095,7 +1095,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;
}
/**
More information about the commits
mailing list