forked from extern/egroupware
* Addressbook - fix photos not imported via Import / Export
This commit is contained in:
parent
4afa2da066
commit
ae28ee1de0
@ -292,7 +292,7 @@ class addressbook_import_contacts_csv extends importexport_basic_import_csv {
|
||||
{
|
||||
$_data['photo_unchanged'] = false;
|
||||
}
|
||||
|
||||
|
||||
switch ($_action) {
|
||||
case 'none' :
|
||||
return true;
|
||||
|
@ -185,6 +185,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