From 753b00a049d9e7c0c9d6001f228693b6ecaa0fd2 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 23 Oct 2012 14:46:58 +0000 Subject: [PATCH] Include missing contact type for conversion to human values --- .../inc/class.addressbook_export_contacts_csv.inc.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_export_contacts_csv.inc.php b/addressbook/inc/class.addressbook_export_contacts_csv.inc.php index 465cf47267..9be41d9c8a 100644 --- a/addressbook/inc/class.addressbook_export_contacts_csv.inc.php +++ b/addressbook/inc/class.addressbook_export_contacts_csv.inc.php @@ -186,6 +186,13 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi $export_object->set_mapping($options['mapping']); + $selects = array( + 'tid' => array('n' => 'Contact') + ); + foreach($this->content_types as $tid => $data) + { + $selects['tid'][$tid] = $data['name']; + } // $options['selection'] is array of identifiers as this plugin doesn't // support other selectors atm. foreach ($selection as $_contact) { @@ -204,7 +211,7 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi // Some conversion $this->convert($contact, $options); if($options['convert']) { - importexport_export_csv::convert($contact, addressbook_egw_record::$types, 'addressbook'); + importexport_export_csv::convert($contact, addressbook_egw_record::$types, 'addressbook',$selects); } else { // Implode arrays, so they don't say 'Array' foreach($contact->get_record_array() as $key => $value) {