X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Fexpense_edit.php;h=61edca26138205e1a861e999c060b09b57a6c92c;hb=8a47b340fd212894ebb7b4456f3f0cb647c9ac68;hp=f560f557442cfbaad35ca0ea5bc22bed780c9355;hpb=45c855269d952873285f7a835e82fc2b3eff3971;p=timetracker.git diff --git a/mobile/expense_edit.php b/mobile/expense_edit.php index f560f557..61edca26 100644 --- a/mobile/expense_edit.php +++ b/mobile/expense_edit.php @@ -200,8 +200,8 @@ if ($request->isPost()) { // Now, a new insert. if ($err->no()) { - if (ttExpenseHelper::insert(array('date'=>$new_date->toString(DB_DATEFORMAT),'user_id'=>$user->getActiveUser(), - 'client_id'=>$cl_client,'project_id'=>$cl_project,'name'=>$cl_item_name,'cost'=>$cl_cost,'status'=>1))) { + if (ttExpenseHelper::insert(array('date'=>$new_date->toString(DB_DATEFORMAT),'client_id'=>$cl_client, + 'project_id'=>$cl_project,'name'=>$cl_item_name,'cost'=>$cl_cost,'status'=>1))) { header('Location: expenses.php?date='.$new_date->toString(DB_DATEFORMAT)); exit(); } else