[Tickets] New ticket (212): script imp2turba.pl

bugs at bugs.horde.org bugs at bugs.horde.org
Mon May 24 01:54:24 PDT 2004


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

-Ticket 212
-Queue: IMP
-Created By: 

-Summary:
script imp2turba.pl

Comment by d.ortiz at in.ilimit.es on Mon May 24 01:54:24 2004 (today):
imp2turba doesn't match the fields when migrate from imp_addr to
turba_objects.
I maked a patch:

@@ -113,9 +113,9 @@
     my $quoted_address  = $db_imphandle->quote($address);
     my $quoted_nickname = $db_imphandle->quote($nickname);
 
-    $turba_statement = "INSERT INTO $TURBA_TABLE VALUES
+    $turba_statement = "INSERT INTO $TURBA_TABLE
(object_id,owner_id,object_name,object_alias,object_email) VALUES
                         ($quoted_key, $quoted_owner, $quoted_fullname,
-                        $quoted_nickname,$quoted_address,
'','','','','','','','','','','')";
+                        $quoted_nickname,$quoted_address)";
 
     $turba_statement = $db_turbahandle->prepare($turba_statement)
                        || die "prepare: $$stmt: $DBI::errstr";

With that turba addressbook shows the correct fields (like email instead
name...)

--


http://bugs.horde.org/details.php?id=212

-- 


More information about the bugs mailing list