mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
ImportExport: Fix date-time customfields with custom format were not exported correctly
see 74bd66d857
This commit is contained in:
parent
d6eade2f75
commit
3c4d46b030
@ -245,7 +245,8 @@ class importexport_export_csv implements importexport_iface_export_record
|
||||
$name = '#' . $name;
|
||||
switch($c_field['type']) {
|
||||
case 'date':
|
||||
$fields['date'][] = $name;
|
||||
case 'date-time':
|
||||
$fields[$c_field['type']][] = $name;
|
||||
if ($c_field['values']['format'] && (is_array($record) ? $record[$name] : $record->$name))
|
||||
{
|
||||
// Date has custom format. Convert so it's standard.
|
||||
@ -265,9 +266,6 @@ class importexport_export_csv implements importexport_iface_export_record
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'date-time':
|
||||
$fields['date-time'][] = $name;
|
||||
break;
|
||||
case 'select-account':
|
||||
$fields['select-account'][] = $name;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user