mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Add custom date fields to list to formatted for spreadsheets
This commit is contained in:
parent
063eeb3c0b
commit
8c7945d41c
@ -122,12 +122,18 @@ class infolog_merge extends bo_merge
|
|||||||
|
|
||||||
// Set any missing custom fields, or the marker will stay
|
// Set any missing custom fields, or the marker will stay
|
||||||
$array = $record->get_record_array();
|
$array = $record->get_record_array();
|
||||||
foreach(array_keys($this->bo->customfields) as $name)
|
foreach($this->bo->customfields as $name => $field)
|
||||||
{
|
{
|
||||||
if(!$array['#'.$name])
|
if(!$array['#'.$name])
|
||||||
{
|
{
|
||||||
$array['#'.$name] = '';
|
$array['#'.$name] = '';
|
||||||
}
|
}
|
||||||
|
// Format date cfs per user preferences
|
||||||
|
if($field['type'] == 'date' || $field['type'] == 'date-time')
|
||||||
|
{
|
||||||
|
$this->date_fields[] = '#'.$name;
|
||||||
|
$array['#'.$name] = egw_time::to($array['#'.$name], $field['type'] == 'date' ? true : '');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Links
|
// Links
|
||||||
|
Loading…
Reference in New Issue
Block a user