Skip to content

Commit

Permalink
FIX Show declared progress
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 6, 2018
1 parent 1647980 commit 6d8a6bf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions htdocs/projet/tasks/time.php
Expand Up @@ -515,7 +515,10 @@

// Planned workload
print '<tr><td>'.$langs->trans("PlannedWorkload").'</td><td>';
print convertSecondToTime($object->planned_workload,'allhourmin');
if ($object->planned_workload)
{
print convertSecondToTime($object->planned_workload,'allhourmin');
}
print '</td></tr>';

print '</table>';
Expand All @@ -528,7 +531,7 @@

// Progress declared
print '<tr><td class="titlefield">'.$langs->trans("ProgressDeclared").'</td><td>';
print $object->progress.' %';
print $object->progress != '' ? $object->progress.' %' : '';
print '</td></tr>';

// Progress calculated
Expand Down Expand Up @@ -960,7 +963,6 @@
$totalarray=array();
foreach ($tasks as $task_time)
{

print '<tr class="oddeven">';

$date1=$db->jdate($task_time->task_date);
Expand Down

0 comments on commit 6d8a6bf

Please sign in to comment.