X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=report.php;h=ed7928c7f995d390f09a8aebd581293309cae234;hb=09cb0a1a3c772c618ff58b339cd40cbdb59f7492;hp=aacb889accea57b35308f4a00fd193d86c2573a5;hpb=cb0478b58a3e34cfffcf41e4e89de5a75685460d;p=timetracker.git diff --git a/report.php b/report.php index aacb889a..ed7928c7 100644 --- a/report.php +++ b/report.php @@ -82,7 +82,8 @@ if ($bean->getAttribute('chpaid') || if ($user->can('manage_invoices')) $showForInvoicesOrPaid = true; } -if ($showForApproved || $showForInvoicesOrPaid) +$use_checkboxes = $showForApproved || $showForInvoicesOrPaid; +if ($use_checkboxes) $smarty->assign('use_checkboxes', true); // Controls for "Mark approved" block. @@ -218,7 +219,7 @@ $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')) +if ($request->isGet() && $use_checkboxes) ttReportHelper::putInSession($report_items); if (ttReportHelper::grouping($options)) {