]> wagnertech.de Git - timetracker.git/blobdiff - timesheet_add.php
Wrote createTimesheet function.
[timetracker.git] / timesheet_add.php
index 4dd1afaea7358a1a3a37c538f253c5b8d4c2b2a2..c450695efe506102856158aee652b0406279a9bf 100644 (file)
@@ -90,12 +90,11 @@ if ($request->isPost()) {
   // Finished validating user input.
 
   if ($err->no()) {
-    /*
-    if (ttTimesheetHelper::insert($fields)) {
+    if (ttTimesheetHelper::createTimesheet($fields)) {
       header('Location: timesheets.php');
       exit();
     } else
-      $err->add($i18n->get('error.db'));*/
+      $err->add($i18n->get('error.db'));
   }
 } // isPost