Fix bug where contacts were moved instead of copied. Internal date

need to be cleared when converting from kolab to Roundcube format (Bug #1767)
This commit is contained in:
Aleksander Machniak 2013-04-18 15:45:00 +02:00
parent db055e29c7
commit f958537e55

View file

@ -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;
}
/**