Modified: trunk/addressbook/csv_import.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/addressbook/csv_import.php?rev=27410&r1=27409&r2=27410&view=diff ==============================================================================
--- trunk/addressbook/csv_import.php (original)
+++ trunk/addressbook/csv_import.php Thu Jul 9 14:38:50 2009
@@ -454,7 +454,11 @@
}
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))
{
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge _______________________________________________
eGroupWare-cvs mailing list
eGroupWare-cvs@... https://lists.sourceforge.net/lists/listinfo/egroupware-cvs