mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
fix: privat flag not working with syncML
This commit is contained in:
parent
33e8f690c3
commit
b331036715
@ -443,7 +443,10 @@ class bocontacts extends socontacts
|
||||
if (($old = $this->read($contact['id']))) // --> try reading the old entry and set it from there
|
||||
{
|
||||
$contact['owner'] = $old['owner'];
|
||||
$contact['private'] = $old['private'];
|
||||
if(!isset($contact['private']))
|
||||
{
|
||||
$contact['private'] = $old['private'];
|
||||
}
|
||||
}
|
||||
else // entry not found --> create a new one
|
||||
{
|
||||
|
@ -555,7 +555,7 @@ class vcaladdressbook extends bocontacts
|
||||
break;
|
||||
|
||||
case 'private':
|
||||
$contact[$fieldName] = (int) $vcardValues[$vcardKey]['values'][$fieldKey] == 'PRIVATE';
|
||||
(int)$contact[$fieldName] = $vcardValues[$vcardKey]['values'][$fieldKey] == 'PRIVATE';
|
||||
break;
|
||||
|
||||
case 'cat_id':
|
||||
@ -586,7 +586,6 @@ class vcaladdressbook extends bocontacts
|
||||
}
|
||||
|
||||
$contact['n_fn'] = trim($contact['n_given'].' '.$contact['n_family']);
|
||||
|
||||
return $contact;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user