X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/7f94d3c91c405b7c5324b8b07cc8c66fabc40b77..eb39786a6d545fab4e795ce42f3cc5504ec69551:/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();