mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
using bocontacts->default_addressbook for add_default; do not try to rebuild the logic of bo construct
This commit is contained in:
parent
d1c2d06810
commit
d2b8d66c8b
@ -466,7 +466,7 @@ switch($_POST['action'])
|
||||
if (!isset($values['owner']) || isset($values['owner']) && (string)$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']))
|
||||
if(!($values['owner'] = $bocontacts->default_addressbook))
|
||||
{
|
||||
$values['owner'] = $GLOBALS['egw_info']['user']['account_id'];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user