]> wagnertech.de Git - timetracker.git/blobdiff - report.php
Added custom field output on time.php as a rewrite of PR#76."
[timetracker.git] / report.php
index 9f29069d33c60dac61656aa145482f5ee81c9f9d..3bd410a464ea7a5abd9a2aa0a551de910ca357f7 100644 (file)
@@ -284,7 +284,7 @@ if ($report_items) {
 
 // Determine column span for note field.
 $colspan = 1;
-if ($bean->getAttribute('chuser')) $colspan++;
+if ($user->can('view_reports') || $user->can('view_all_reports') || $user->isClient()) $colspan++;
 if ($bean->getAttribute('chclient')) $colspan++;
 if ($bean->getAttribute('chproject')) $colspan++;
 if ($bean->getAttribute('chtask')) $colspan++;
@@ -299,6 +299,7 @@ if ($bean->getAttribute('chpaid')) $colspan++;
 if ($bean->getAttribute('chip')) $colspan++;
 if ($bean->getAttribute('chinvoice')) $colspan++;
 if ($bean->getAttribute('chtimesheet')) $colspan++;
+if ($bean->getAttribute('chfiles')) $colspan++;
 
 // Assign variables that are used to alternate color of rows for different dates.
 $smarty->assign('prev_date', '');