Skip to content

Commit

Permalink
FIX for stickler
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-quentin committed Jan 31, 2020
1 parent fee113b commit 398e83d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion htdocs/core/lib/date.lib.php
Expand Up @@ -969,7 +969,6 @@ function monthArray($outputlangs, $short = 0)
* @param int $year Year number
* @return array Week numbers
*/

function getWeekNumbersOfMonth($month, $year)
{
$nb_days = cal_days_in_month(CAL_GREGORIAN, $month, $year);
Expand Down
1 change: 1 addition & 0 deletions htdocs/core/lib/project.lib.php
Expand Up @@ -1727,6 +1727,7 @@ function projectLinesPerWeek(&$inc, $firstdaytoshow, $fuser, $parent, $lines, &$
* @param int $restricteditformytask 0=No restriction, 1=Enable add time only if task is a task i am affected to
* @param array $isavailable Array with data that say if user is available for several days for morning and afternoon
* @param int $oldprojectforbreak Old project id of last project break
* @param array $Tweek Array of week numbers
* @return array Array with time spent for $fuser for each day of week on tasks in $lines and substasks
*/
function projectLinesPerMonth(&$inc, $firstdaytoshow, $fuser, $parent, $lines, &$level, &$projectsrole, &$tasksrole, $mine, $restricteditformytask, &$isavailable, $oldprojectforbreak = 0, $TWeek = array())
Expand Down
3 changes: 2 additions & 1 deletion htdocs/projet/activity/permonth.php
Expand Up @@ -480,7 +480,8 @@
print '<td class="liste_titre right"><input type="text" size="4" name="search_declared_progress" value="'.dol_escape_htmltag($search_declared_progress).'"></td>';
print '<td class="liste_titre"></td>';
print '<td class="liste_titre"></td>';
for ($idw=0;$idw<count($TWeek);$idw++)
$countWeek = count($TWeek);
for ($idw=0;$idw<$countWeek;$idw++)
{
print '<td class="liste_titre"></td>';
}
Expand Down

0 comments on commit 398e83d

Please sign in to comment.