Summary | _save in lib/Horde/Kolab/XML/contact.php fails on address book import |
Queue | Kolab |
Type | Bug |
State | Not A Bug |
Priority | 2. Medium |
Owners | wrobel (at) horde (dot) org |
Requester | m.gabriel (at) das-netzwerkteam (dot) de |
Created | 12/25/2007 (6404 days ago) |
Due | |
Updated | 04/01/2008 (6306 days ago) |
Assigned | 12/25/2007 (6404 days ago) |
Resolved | 03/26/2008 (6312 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
file)... hopefully, i will find some time to provide more details...
mike
State ⇒ Not A Bug
"firstname","lastname","emails"
"test","test",
"test2","test2","test@example.org, testauch@example.org"
Maybe the problem has been resolved in CVS already?
Marking as "not a bug" but please reopen with more details if the
problem still persists for you.
State ⇒ Assigned
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ _save in lib/Horde/Kolab/XML/contact.php fails on address book import
Queue ⇒ Kolab
New Attachment: contact-xml.patch
State ⇒ Unconfirmed
error:
when importing a simple CSV address book (LASTNAME, FIRSTNAME, EMAIL)
into turba (using kolab driver), the following error occurs (the given
line number is not correct as it refers to the already patched and
commented out code):
Notice: Undefined index: full-name in
/usr/local/share/_horde-versions_/horde-webmail-1.1-rc1-netzwerkteam/lib/Horde/Kolab/XML/contact.php on line
395
the error occurs in this code snippet:
<snip>
foreach ($emails as $email) {
$email = trim($email);
if (!empty($email)) {
$new_email = array('display-name' =>
$object['name']['full-name'],
'smtp-address' => $email);
$object['email'][] = $new_email;
}
}
</snap>
reason:
when using the example 'kolab' source in turba's sources.php the
'full-name' key is not an available key in the imported abook object.
solution/workaround:
a patch is attached that might only be regarded as a workaround.
probably the 'map' array of cfgSources['kolab'] should be evaluated
instead... (which tells you how to generate a person's 'full-name').