phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: addressbook csv_import.php,1.13.2.1,1.13.2.2


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: addressbook csv_import.php,1.13.2.1,1.13.2.2
Date: Tue, 15 Oct 2002 20:42:45 -0400

Update of /cvsroot/phpgroupware/addressbook
In directory subversions:/tmp/cvs-serv25458

Modified Files:
      Tag: eTemplate
        csv_import.php 
Log Message:
added the ab_id to the fields, to allow updates

Index: csv_import.php
===================================================================
RCS file: /cvsroot/phpgroupware/addressbook/csv_import.php,v
retrieving revision 1.13.2.1
retrieving revision 1.13.2.2
diff -C2 -r1.13.2.1 -r1.13.2.2
*** csv_import.php      16 Oct 2002 00:36:18 -0000      1.13.2.1
--- csv_import.php      16 Oct 2002 00:42:43 -0000      1.13.2.2
***************
*** 366,371 ****
                                if(!$debug)
                                {
!                                       $GLOBALS['phpgw']->contacts->add( 
$values['owner'] ? $values['owner'] : 
$GLOBALS['phpgw_info']['user']['account_id'],
!                                               
$values,$values['access'],$values['cat_id']);
                                        // echo "<p>adding: 
".dump_array($values)."</p>\n";
                                }
--- 366,380 ----
                                if(!$debug)
                                {
!                                       if (!$values['ab_id'])
!                                       {
!                                               
$GLOBALS['phpgw']->contacts->add( $values['owner'] ? $values['owner'] : 
$GLOBALS['phpgw_info']['user']['account_id'],
!                                                       
$values,$values['access'],$values['cat_id']);
!                                       }
!                                       else
!                                       {
!                                               
$GLOBALS['phpgw']->contacts->update( $values['ab_id'],
!                                                       $values['owner'] ? 
$values['owner'] : $GLOBALS['phpgw_info']['user']['account_id'],
!                                                       
$values,$values['access'],$values['cat_id']);
!                                       }
                                        // echo "<p>adding: 
".dump_array($values)."</p>\n";
                                }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]