From a240cf30d685492b676821bf46dafb674e90224a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Wed, 3 Aug 2016 00:50:17 +0200 Subject: [PATCH] Fix PROJECT_LINES_PERWEEK_SHOW_THIRDPARTY to show thirdparty. --- htdocs/projet/activity/perweek.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/projet/activity/perweek.php b/htdocs/projet/activity/perweek.php index 13d3610b0cc..44462bb8594 100644 --- a/htdocs/projet/activity/perweek.php +++ b/htdocs/projet/activity/perweek.php @@ -407,8 +407,11 @@ if (count($tasksarray) > 0) $level=0; projectLinesPerWeek($j, $firstdaytoshow, $usertoprocess, 0, $tasksarray, $level, $projectsrole, $tasksrole, $mine, $restrictviewformytask); + $colspan=7; + if (! empty($conf->global->PROJECT_LINES_PERWEEK_SHOW_THIRDPARTY)) $colspan++; + print '<tr class="liste_total"> - <td class="liste_total" colspan="7" align="right">'.$langs->trans("Total").'</td> + <td class="liste_total" colspan="'.$colspan.'" align="right">'.$langs->trans("Total").'</td> <td class="liste_total hide0" width="7%" align="center"><div id="totalDay[0]"> </div></td> <td class="liste_total hide1" width="7%" align="center"><div id="totalDay[1]"> </div></td> <td class="liste_total hide2" width="7%" align="center"><div id="totalDay[2]"> </div></td> -- GitLab