X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=time.php;h=63f5b8cf32c183036528375f02ad500ebbdc32c2;hb=02b2922eba6a62ba515d8a4a5e400349f0ca688f;hp=9b76587bb609e7301e883c7a7b9978da0d08b311;hpb=0825270a9b1a47a73e08f00ecd9191c227fbdd8c;p=timetracker.git diff --git a/time.php b/time.php index 9b76587b..63f5b8cf 100644 --- a/time.php +++ b/time.php @@ -396,11 +396,14 @@ if ($request->isPost()) { } // isPost $week_total = ttTimeHelper::getTimeForWeek($selected_date); +$showFiles = $user->isPluginEnabled('at'); +$timeRecords = $showFiles? ttTimeHelper::getRecordsWithFiles($user_id, $cl_date) : ttTimeHelper::getRecords($user_id, $cl_date); $smarty->assign('selected_date', $selected_date); $smarty->assign('week_total', $week_total); $smarty->assign('day_total', ttTimeHelper::getTimeForDay($cl_date)); -$smarty->assign('time_records', ttTimeHelper::getRecords($user_id, $cl_date)); +$smarty->assign('time_records', $timeRecords); +$smarty->assign('show_files', $showFiles); $smarty->assign('client_list', $client_list); $smarty->assign('project_list', $project_list); $smarty->assign('task_list', $task_list);