]> wagnertech.de Git - timetracker.git/blobdiff - topdf.php
Fixed date format in Totals only reports.
[timetracker.git] / topdf.php
index 0040c7be926bb504c9d9a1d9393f9e14eacb55a3..23f29d5084c3ef0905652faf3809681d2ec1839c 100644 (file)
--- a/topdf.php
+++ b/topdf.php
@@ -66,7 +66,7 @@ $totals_only = ($bean->getAttribute('chtotalsonly') == '1');
 $options = ttReportHelper::getReportOptions($bean);
 if (!$totals_only)
   $items = ttReportHelper::getItems($options); // Individual entries.
-if ($totals_only || 'no_grouping' != $group_by1)
+if ($totals_only || ttReportHelper::grouping($options))
   $subtotals = ttReportHelper::getSubtotals($options); // Subtotals for groups of items.
 $totals = ttReportHelper::getTotals($options); // Totals for the entire report.