X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/85329fe7459e5892082de3bd40459e7dfdb36f11..47b6c704a5375b9f98376bf4eb727d4ee49fe3e2:/report.php diff --git a/report.php b/report.php index cd093e40..efbaccea 100644 --- a/report.php +++ b/report.php @@ -69,7 +69,7 @@ $client_id = $bean->getAttribute('client'); // Do we need to show checkboxes? if ($bean->getAttribute('chpaid') || - ($client_id && $bean->getAttribute('chinvoice') && ('no_grouping' == $bean->getAttribute('group_by')) && !$user->isClient())) { + ($client_id && $bean->getAttribute('chinvoice') && ('no_grouping' == $bean->getAttribute('group_by1')) && !$user->isClient())) { if ($user->can('manage_invoices')) $smarty->assign('use_checkboxes', true); } @@ -92,7 +92,7 @@ if ($user->can('manage_invoices') && $bean->getAttribute('chpaid')) { // Controls for "Assign to invoice" block. if ($user->can('manage_invoices') && - ($client_id && $bean->getAttribute('chinvoice') && ('no_grouping' == $bean->getAttribute('group_by')) && !$user->isClient())) { + ($client_id && $bean->getAttribute('chinvoice') && ('no_grouping' == $bean->getAttribute('group_by1')) && !$user->isClient())) { // Client is selected and we are displaying the invoice column. $recent_invoices = ttTeamHelper::getRecentInvoices($user->group_id, $client_id); if ($recent_invoices) { @@ -170,7 +170,7 @@ if ($request->isPost()) { } } // isPost -$group_by = $bean->getAttribute('group_by'); +$group_by = $bean->getAttribute('group_by1'); $options = ttReportHelper::getReportOptions($bean); $report_items = ttReportHelper::getItems($options); @@ -183,10 +183,10 @@ if ('no_grouping' != $group_by) $totals = ttReportHelper::getTotals($options); // Assign variables that are used to print subtotals. -if ($report_items && 'no_grouping' != $group_by) { +if ($report_items && 'no_grouping' != $group_by1) { $smarty->assign('print_subtotals', true); $smarty->assign('first_pass', true); - $smarty->assign('group_by', $group_by); + $smarty->assign('group_by1', $group_by1); $smarty->assign('prev_grouped_by', ''); $smarty->assign('cur_grouped_by', ''); }