X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/0437aa573277bc54ef4365f2df6ec72f40b5ef29..f12ceba49cb845be385e6b7c7786fc7e5393e802:/report.php diff --git a/report.php b/report.php index 3f207449..cd093e40 100644 --- a/report.php +++ b/report.php @@ -172,14 +172,15 @@ if ($request->isPost()) { $group_by = $bean->getAttribute('group_by'); -$report_items = ttReportHelper::getItems($bean); +$options = ttReportHelper::getReportOptions($bean); +$report_items = ttReportHelper::getItems($options); // Store record ids in session in case user wants to act on records such as marking them all paid. if ($request->isGet() && $user->isPluginEnabled('ps')) ttReportHelper::putInSession($report_items); if ('no_grouping' != $group_by) - $subtotals = ttReportHelper::getSubtotals($bean); -$totals = ttReportHelper::getTotals($bean); + $subtotals = ttReportHelper::getSubtotals($options); +$totals = ttReportHelper::getTotals($options); // Assign variables that are used to print subtotals. if ($report_items && 'no_grouping' != $group_by) {