From 6bd219b117eebe7f6d88fdaad03331ff02d17534 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 24 Oct 2016 17:47:31 +0200 Subject: [PATCH] Fix column task ref/label --- htdocs/projet/tasks/time.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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) {