mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-16 11:41:19 +01:00
* Addressbook: Fix avatar photo gets removed when adding category to contact via contextmenu
This commit is contained in:
parent
7ea83610e6
commit
1494d1a6e9
@ -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