X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/e9a0449fe594cca8fa7645f02ae5365402d96259..eb300930267977a1caac0355200467e4bdf8b655:/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.