mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
"use default addressbook for new contacts (user preferences), if no owner specified"
This commit is contained in:
parent
dc813fd741
commit
69d377b5d5
@ -454,7 +454,11 @@ switch($_POST['action'])
|
||||
}
|
||||
if (!in_array('owner',$addr_fields) || !$values['owner'])
|
||||
{
|
||||
$values['owner'] = $GLOBALS['egw_info']['user']['account_id'];
|
||||
// use default addressbook for new contacts (user preferences), if no owner specified
|
||||
if(!($values['owner'] = $GLOBALS['egw_info']['user']['preferences']['addressbook']['add_default']))
|
||||
{
|
||||
$values['owner'] = $GLOBALS['egw_info']['user']['account_id'];
|
||||
}
|
||||
}
|
||||
if (!in_array('id',$addr_fields))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user