Commit 41d9a57e authored by Jean-Paul Saman's avatar Jean-Paul Saman

Select timesheet details of the user that submitted it instead of the current user.

parent c28f7777
......@@ -342,7 +342,8 @@ function showproject()
$t->addTable('task_log');
$t->addWhere('task_log_task = '. $item["task_id"]);
// What if this is different then current user?
$t->addWhere('task_log_creator = ' . $AppUI->user_id);
//$t->addWhere('task_log_creator = ' . $AppUI->user_id);
$t->addWhere('task_log_creator = ' . $timesheet->timesheet_creator);
$t->addOrder('task_log_date DESC');
// TODO: select on user and date
$log = $t->LoadList();
......
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