diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php
index ada4156ad1c..96c849d8df9 100644
--- a/htdocs/projet/tasks/time.php
+++ b/htdocs/projet/tasks/time.php
@@ -570,7 +570,8 @@ if (($id > 0 || ! empty($ref)) || $projectidforalltimes > 0)
print '
'.$langs->trans("Date").' | ';
if (! $id && ! $ref) // Not a dedicated task
{
- print ''.$langs->trans("Task").' | ';
+ print ''.$langs->trans("RefTask").' | ';
+ print ''.$langs->trans("LabelTask").' | ';
}
print ''.$langs->trans("By").' | ';
print ''.$langs->trans("Note").' | ';
@@ -615,6 +616,9 @@ if (($id > 0 || ! empty($ref)) || $projectidforalltimes > 0)
$tasktmp->label = $task_time->label;
print $tasktmp->getNomUrl(1, 'withproject', 'time');
print '';
+ print '';
+ print $tasktmp->label;
+ print ' | ';
}
// User
@@ -702,7 +706,13 @@ if (($id > 0 || ! empty($ref)) || $projectidforalltimes > 0)
$total += $task_time->task_duration;
$totalvalue += price2num($task_time->thm * $task_time->task_duration / 3600);
}
- print '| '.$langs->trans("Total").' | ';
+
+ $colspan=3;
+ if (! $id && ! $ref) // Not a dedicated task
+ {
+ $colspan+=2;
+ }
+ print '
| '.$langs->trans("Total").' | ';
print ''.convertSecondToTime($total,'allhourmin').' | ';
if ($conf->salaries->enabled)
{