Author: ralfbecker
Date: Thu Jul 9 15:02:57 2009
New Revision: 27411
URL:
http://www.egroupware.org/viewvc/egroupware?rev=27411&view=revLog:
"only use default addressbook, if none is specified AND no existing contact already in a defined addressbook"
Modified:
trunk/addressbook/csv_import.php
Modified: trunk/addressbook/csv_import.php
URL:
http://www.egroupware.org/viewvc/egroupware/trunk/addressbook/csv_import.php?rev=27411&r1=27410&r2=27411&view=diff==============================================================================
--- trunk/addressbook/csv_import.php (original)
+++ trunk/addressbook/csv_import.php Thu Jul 9 15:02:57 2009
@@ -452,7 +452,7 @@
$values[$user] = $GLOBALS['egw']->accounts->name2id($values[$user],'account_lid',$user=='owner'?null:'u');
}
}
- if (!in_array('owner',$addr_fields) || !$values['owner'])
+ if (!isset($values['owner']) || isset($values['owner']) && !$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']))
------------------------------------------------------------------------------
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