mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Fix SyncML addressbook handling
This commit is contained in:
parent
d6141a6d18
commit
97e1449db6
@ -247,22 +247,6 @@ class addressbook_sif extends addressbook_bo
|
||||
{
|
||||
$contact['cat_id'] = implode(',',$this->find_or_add_categories($contact['cat_id'], -1));
|
||||
}
|
||||
if (isset($GLOBALS['egw_info']['user']['preferences']['syncml']['filter_addressbook']))
|
||||
{
|
||||
$owner = $GLOBALS['egw_info']['user']['preferences']['syncml']['filter_addressbook'];
|
||||
switch ($owner)
|
||||
{
|
||||
case 'G':
|
||||
$contact['owner'] = $GLOBALS['egw_info']['user']['account_primary_group'];
|
||||
break;
|
||||
case 'P':
|
||||
case 0:
|
||||
$contact['owner'] = $this->user;
|
||||
break;
|
||||
default:
|
||||
$contact['owner'] = (int)$owner;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $this->save($contact);
|
||||
}
|
||||
|
@ -175,23 +175,6 @@ class addressbook_vcal extends addressbook_bo
|
||||
{
|
||||
$contact['cat_id'] = implode(',',$this->find_or_add_categories($contact['cat_id'], -1));
|
||||
}
|
||||
if (isset($GLOBALS['egw_info']['user']['preferences']['syncml']['filter_addressbook']))
|
||||
{
|
||||
$owner = $GLOBALS['egw_info']['user']['preferences']['syncml']['filter_addressbook'];
|
||||
switch ($owner)
|
||||
{
|
||||
case 'G':
|
||||
$contact['owner'] = $GLOBALS['egw_info']['user']['account_primary_group'];
|
||||
break;
|
||||
case 'P':
|
||||
case 'N':
|
||||
case 0:
|
||||
$contact['owner'] = $this->user;
|
||||
break;
|
||||
default:
|
||||
$contact['owner'] = (int)$owner;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($contact['owner']) && $contact['owner'] != $this->user)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user