X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=time.php;h=615f2ef901bdbc3e8fa427284d52f23a988a1bd1;hb=148dd13e6cf7978bcb2103fe0bc75387b61b3b86;hp=5cec8a7e6cca2892b25559e627244b27feb77b05;hpb=841e890b68ec699bf5291c43b4527bf748b5265c;p=timetracker.git 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);