From: Nik Okuntseff Date: Sat, 28 Jul 2018 16:08:21 +0000 (+0000) Subject: Resumed refactoring of reports. X-Git-Tag: timetracker_1.19-1~798 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=eb39786a6d545fab4e795ce42f3cc5504ec69551;p=timetracker.git Resumed refactoring of reports. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 028380aa..5dd88517 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.95.4294 | Copyright © Anuko | +  Anuko Time Tracker 1.17.95.4295 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} 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();