mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +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
|
if (($old = $this->read($contact['id']))) // --> try reading the old entry and set it from there
|
||||||
{
|
{
|
||||||
$contact['owner'] = $old['owner'];
|
$contact['owner'] = $old['owner'];
|
||||||
$contact['private'] = $old['private'];
|
if(!isset($contact['private']))
|
||||||
|
{
|
||||||
|
$contact['private'] = $old['private'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else // entry not found --> create a new one
|
else // entry not found --> create a new one
|
||||||
{
|
{
|
||||||
|
@ -555,7 +555,7 @@ class vcaladdressbook extends bocontacts
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'private':
|
case 'private':
|
||||||
$contact[$fieldName] = (int) $vcardValues[$vcardKey]['values'][$fieldKey] == 'PRIVATE';
|
(int)$contact[$fieldName] = $vcardValues[$vcardKey]['values'][$fieldKey] == 'PRIVATE';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'cat_id':
|
case 'cat_id':
|
||||||
@ -586,7 +586,6 @@ class vcaladdressbook extends bocontacts
|
|||||||
}
|
}
|
||||||
|
|
||||||
$contact['n_fn'] = trim($contact['n_given'].' '.$contact['n_family']);
|
$contact['n_fn'] = trim($contact['n_given'].' '.$contact['n_family']);
|
||||||
|
|
||||||
return $contact;
|
return $contact;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user