mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Include missing contact type for conversion to human values
This commit is contained in:
parent
6127be47d7
commit
753b00a049
@ -186,6 +186,13 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
|
|||||||
|
|
||||||
$export_object->set_mapping($options['mapping']);
|
$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
|
// $options['selection'] is array of identifiers as this plugin doesn't
|
||||||
// support other selectors atm.
|
// support other selectors atm.
|
||||||
foreach ($selection as $_contact) {
|
foreach ($selection as $_contact) {
|
||||||
@ -204,7 +211,7 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
|
|||||||
// Some conversion
|
// Some conversion
|
||||||
$this->convert($contact, $options);
|
$this->convert($contact, $options);
|
||||||
if($options['convert']) {
|
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 {
|
} else {
|
||||||
// Implode arrays, so they don't say 'Array'
|
// Implode arrays, so they don't say 'Array'
|
||||||
foreach($contact->get_record_array() as $key => $value) {
|
foreach($contact->get_record_array() as $key => $value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user