X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=report.php;h=31cee67a35d90015e4d8e97a607d8b7c14e50515;hb=9b5a1834db24f25803fc0d461394e4a2bfcc44b7;hp=b82380d7aed0d32077141240cdcb1cdea2cd52e2;hpb=ed499fa49d8dad66119752b4cfe213d30da2bed6;p=timetracker.git diff --git a/report.php b/report.php index b82380d7..31cee67a 100644 --- a/report.php +++ b/report.php @@ -275,17 +275,16 @@ if ($request->isGet() && $use_checkboxes) if (ttReportHelper::grouping($options)) { $subtotals = ttReportHelper::getSubtotals($options); $smarty->assign('group_by_header', ttReportHelper::makeGroupByHeader($options)); + if ($report_items) { + // Assign variables that are used to print subtotals. + $smarty->assign('print_subtotals', true); + $smarty->assign('first_pass', true); + $smarty->assign('prev_grouped_by', ''); + $smarty->assign('cur_grouped_by', ''); + } } $totals = ttReportHelper::getTotals($options); -// Assign variables that are used to print subtotals. -if ($report_items) { - $smarty->assign('print_subtotals', true); - $smarty->assign('first_pass', true); - $smarty->assign('prev_grouped_by', ''); - $smarty->assign('cur_grouped_by', ''); -} - // Determine column span for note field. $colspan = 1; if ($user->can('view_reports') || $user->can('view_all_reports') || $user->isClient()) $colspan++;