forked from extern/egroupware
"use default addressbook for new contacts (user preferences), if no owner specified"
This commit is contained in:
parent
dc813fd741
commit
69d377b5d5
@ -453,9 +453,13 @@ switch($_POST['action'])
|
||||
}
|
||||
}
|
||||
if (!in_array('owner',$addr_fields) || !$values['owner'])
|
||||
{
|
||||
// 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))
|
||||
{
|
||||
$log .= "\t\t<td>".$values['id']."</td>\n";
|
||||
|
Loading…
Reference in New Issue
Block a user