From 070ba2b617d05bc9b601c855aa9a22012112cdb5 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 5 Sep 2018 13:29:58 -0600 Subject: [PATCH] Use flag to tell Contacts we want to save the picture --- addressbook/inc/class.addressbook_import_vcard.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addressbook/inc/class.addressbook_import_vcard.inc.php b/addressbook/inc/class.addressbook_import_vcard.inc.php index 6b4c3e8d5a..01cb282239 100644 --- a/addressbook/inc/class.addressbook_import_vcard.inc.php +++ b/addressbook/inc/class.addressbook_import_vcard.inc.php @@ -163,6 +163,12 @@ class addressbook_import_vcard implements importexport_iface_import_plugin { $record['owner'] = $owner; + // If photo is set, we want to update it + if($record['jpegphoto']) + { + $record['photo_unchanged'] = false; + } + // Check that owner (addressbook) is allowed if(!array_key_exists($record['owner'], $this->bocontacts->get_addressbooks())) {