Commit 31b0cd18 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Write hint to check this in future.

parent 671e0a07
......@@ -111,7 +111,7 @@ class CTimesheet extends CDpObject {
$amount = 0;
foreach ($tasks as $item) {
// Query the task_log table for actual start dates.
// Query the task_log table for actual start dates.
$t->addQuery('task_log_id');
$t->addQuery('task_log_name');
$t->addQuery('task_log_creator');
......@@ -137,7 +137,7 @@ class CTimesheet extends CDpObject {
}
$sheet = new DBQuery();
$sheet->addTable('timesheet_project');
$sheet->addInsert('timesheet_id,timesheet_project,timesheet_project_amount',
$sheet->addInsert('timesheet_id,timesheet_project,timesheet_project_amount',
$this->timesheet_id.','.$row["project_id"].','.$amount, true);
if (!$sheet->exec()) {
echo db_error();
......@@ -196,6 +196,8 @@ class CTimesheet extends CDpObject {
if (!$q->exec()) {
return db_error();
}
// Why is this needed ??
echo $q;
if ($stat>0) {
$this->project_purge();
$this->project_store();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment