X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/3d9beabc77b40f26d2ae76269d03ca1c379f0bd0..5970acff895c6773c700d7e218ad4a932040789d:/reports.php diff --git a/reports.php b/reports.php index 79c011f9..a2825329 100644 --- a/reports.php +++ b/reports.php @@ -333,13 +333,11 @@ if ($request->isPost()) { if ($start_date->compare($end_date) > 0) $err->add($i18n->get('error.interval'), $i18n->get('label.end_date'), $i18n->get('label.start_date')); } - - $bean->saveBean(); - // Check some more values. TODO: Perhaps it's not a good place to check values, re-evaluate this. - // Also make sure other post variations are sane. + // Check remaining values. if (!ttReportHelper::verifyBean($bean)) $err->add($i18n->get('error.sys')); if ($err->no()) { + $bean->saveBean(); // Now we can go ahead and create a report. header('Location: report.php'); exit();