X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/841e890b68ec699bf5291c43b4527bf748b5265c..b6546c4547eb47a06f80b6d0ffa474d3929602f9:/time.php diff --git a/time.php b/time.php index 5cec8a7e..615f2ef9 100644 --- a/time.php +++ b/time.php @@ -396,12 +396,15 @@ 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)); -if (isTrue('FILES_DEBUG')) $smarty->assign('show_files', $user->isPluginEnabled('at')); +$smarty->assign('time_records', $timeRecords); +$smarty->assign('show_cf_1', $user->isPluginEnabled('cf')); +$smarty->assign('show_files', $showFiles); $smarty->assign('client_list', $client_list); $smarty->assign('project_list', $project_list); $smarty->assign('task_list', $task_list);