mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
Use Merge number formatting instead of export formatting. It takes export file type into consideration.
This commit is contained in:
parent
583fbea046
commit
74a7d6ee8b
@ -86,6 +86,9 @@ class infolog_merge extends Api\Storage\Merge
|
||||
|
||||
// Convert to human friendly values
|
||||
$types = infolog_egw_record::$types;
|
||||
// We have specific requirements for floats, we'll do them in Merge
|
||||
unset($types['float']);
|
||||
|
||||
$_selects = $this->bo->enums + array('status' => $this->bo->status[$record->info_type]);
|
||||
foreach($_selects as $name => $value)
|
||||
{
|
||||
@ -101,6 +104,10 @@ class infolog_merge extends Api\Storage\Merge
|
||||
importexport_export_csv::convert($record, $types, 'infolog', $selects);
|
||||
|
||||
$array = $record->get_record_array();
|
||||
foreach(array('info_price') as $key)
|
||||
{
|
||||
$array[$key] = self::number_format($array[$key],2,$this->mimetype);
|
||||
}
|
||||
if($record->info_contact)
|
||||
{
|
||||
$array['info_contact'] = $array['info_link']['title'];
|
||||
|
Loading…
Reference in New Issue
Block a user