diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 961ae40c5f5..b596ba911ae 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3713,7 +3713,7 @@ class Form } elseif ($typehour=='text') { - print ''; + print ''; } print $langs->trans('Hours'). " "; print ''; diff --git a/htdocs/projet/activity/list.php b/htdocs/projet/activity/list.php index e9cb8568b65..e9610eb98e5 100644 --- a/htdocs/projet/activity/list.php +++ b/htdocs/projet/activity/list.php @@ -114,8 +114,6 @@ $title=$langs->trans("TimeSpent"); if ($mine) $title=$langs->trans("MyTimeSpent"); -llxHeader("",$title,""); - //$projectsListId = $projectstatic->getProjectsAuthorizedForUser($user,$mine,1); $projectsListId = $projectstatic->getProjectsAuthorizedForUser($user,0,1); // Return all project i have permission on. I want my tasks and some of my task may be on a public projet that is not my project @@ -133,6 +131,9 @@ $tasksrole=$taskstatic->getUserRolesForProjectsOrTasks(0,$user,($project->id?$pr //var_dump($taskrole); + +llxHeader("",$title,""); + print_barre_liste($title, $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, "", $num); @@ -156,8 +157,15 @@ print ''.$langs->trans("Progress").''; print ''.$langs->trans("TimeSpent").''; print ''.$langs->trans("AddDuration").''; print "\n"; -projectLinesb($j, 0, $tasksarray, $level, $projectsrole, $tasksrole, $mine); +if (count($tasksarray) > 0) +{ + projectLinesb($j, 0, $tasksarray, $level, $projectsrole, $tasksrole, $mine); +} +else +{ + print ''.$langs->trans("NoTasks").''; +} print ""; print '';