From d2b8d66c8b84502b6b68e4489f780a927a277cbc Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 13 Dec 2010 13:18:29 +0000 Subject: [PATCH] using bocontacts->default_addressbook for add_default; do not try to rebuild the logic of bo construct --- addressbook/csv_import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/csv_import.php b/addressbook/csv_import.php index 925571745a..c9ee296840 100644 --- a/addressbook/csv_import.php +++ b/addressbook/csv_import.php @@ -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']; }