mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
* Addressbook: Fix avatar photo gets removed when adding category to contact via contextmenu
This commit is contained in:
parent
8f5734252c
commit
189de3ddda
@ -864,6 +864,10 @@ class Contacts extends Contacts\Storage
|
||||
*/
|
||||
function save(&$contact, $ignore_acl=false, $touch_modified=true)
|
||||
{
|
||||
// Make sure photo remains unchanged unless its purposely set to be false
|
||||
// which means photo has changed.
|
||||
if (!array_key_exists('photo_unchanged',$contact)) $contact['photo_unchanged'] = true;
|
||||
|
||||
// remember if we add or update a entry
|
||||
if (($isUpdate = $contact['id']))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user