X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/0ae87b2b2eeb7710e1d169f63708c6c5dc2e2452..f490a9f5e080c426f54502d1004f8ab444d26469:/report.php diff --git a/report.php b/report.php index 7ecabcc5..65d98e4e 100644 --- a/report.php +++ b/report.php @@ -58,10 +58,10 @@ if ($user->isPluginEnabled('cf')) { $smarty->assign('custom_fields', $custom_fields); } -$form = new Form('reportForm'); +$form = new Form('reportViewForm'); // Report settings are stored in session bean before we get here from reports.php. -$bean = new ActionForm('reportBean', $form, $request); +$bean = new ActionForm('reportBean', new Form('reportForm'), $request); // If we are in post, load the bean from session, as the constructor does it only in get. if ($request->isPost()) $bean->loadBean(); @@ -209,6 +209,8 @@ if ($user->isPluginEnabled('ts') && count($report_items) > 0 && break; } } + // Save user_id in session. + $bean->saveDetachedAttribute('timesheet_user_id', $first_user_id); // TODO: Improve this for "view_all_reports" situation. // We may need to add "manage_all_timesheets" right.