X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=tofile.php;h=d996098b71da7dba01d6bfb7d3d9d65fd5e1977c;hb=7562c5b6d68929eb4787749f8c10dc032ee9a1c7;hp=42b7343385fc8b50a4162ce6091450d1c6c27400;hpb=e6463e1944221a524f49668b3b23032c3b9335f3;p=timetracker.git diff --git a/tofile.php b/tofile.php index 42b73433..d996098b 100644 --- a/tofile.php +++ b/tofile.php @@ -164,14 +164,7 @@ if ('csv' == $type) { $group_by1 = $bean->getAttribute('group_by1'); if ($totals_only) { // Totals only report. - - // Determine group_by header. - if ('cf_1' == $group_by1) - $group_by_header = $custom_fields->fields[0]['label']; - else { - $key = 'label.'.$group_by1; - $group_by_header = $i18n->get($key); - } + $group_by_header = ttReportHelper::makeGroupByHeader($options); // Print headers. print '"'.$group_by_header.'"';