diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php index bb8eb9c3505..ae885da36f4 100644 --- a/htdocs/projet/tasks/time.php +++ b/htdocs/projet/tasks/time.php @@ -269,14 +269,30 @@ if ($_GET["id"] > 0) print ''; // Time spent - $heure = intval($task_time->task_duration); - $minutes = round((($task_time->task_duration - $heure) * 60),0); - $minutes = substr("00"."$minutes", -2); - print ''.$heure." h ".$minutes."\n"; + print ''; + if ($_GET['action'] == 'editline' && $_GET['lineid'] == $task_time->rowid) + { + print ''; + } + else + { + // TODO add function + $hour = intval($task_time->task_duration); + $minutes = round((($task_time->task_duration - $hour) * 60),0); + $minutes = substr("00"."$minutes", -2); + print $hour." h ".$minutes; + } + print ''; // Edit and delete icon - print ''; - if ($user->rights->projet->creer && $userAccess) + print ''; + if ($_GET['action'] == 'editline' && $_GET['lineid'] == $task_time->rowid) + { + print ''; + print '
'; + print ''; + } + else if ($user->rights->projet->creer && $userAccess) { print ' '; print 'rowid.'">';