mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
* Addressbook - fix photos not imported via Import / Export
This commit is contained in:
parent
ce20aaaba8
commit
7d14918e49
@ -286,6 +286,13 @@ class addressbook_import_contacts_csv extends importexport_basic_import_csv {
|
||||
*/
|
||||
protected function action ( $_action, importexport_iface_egw_record &$record, $record_num = 0 ) {
|
||||
$_data = $record->get_record_array();
|
||||
|
||||
// Make sure picture is loaded/updated
|
||||
if($_data['jpegphoto'])
|
||||
{
|
||||
$_data['photo_unchanged'] = false;
|
||||
}
|
||||
|
||||
switch ($_action) {
|
||||
case 'none' :
|
||||
return true;
|
||||
|
@ -184,6 +184,11 @@ class addressbook_import_vcard implements importexport_iface_import_plugin {
|
||||
{
|
||||
$record['cat_id'] = implode(',',$this->bocontacts->find_or_add_categories($record['cat_id'], -1));
|
||||
}
|
||||
// Make sure picture is loaded/updated
|
||||
if($record['jpegphoto'])
|
||||
{
|
||||
$record['photo_unchanged'] = false;
|
||||
}
|
||||
return $record;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user