Skip to content

Commit

Permalink
#374 [TimeSpent] add: project status info
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Jul 10, 2023
1 parent 5ca086f commit 892cfaa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/dolisirh_timespent.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ function doliSirhGetTasksArray($usert = null, $userp = null, $projectid = 0, $so
}
}


$sql .= " ORDER BY p.ref, t.rang, t.dateo";

//print $sql;exit;
Expand Down Expand Up @@ -948,7 +947,7 @@ function doliSirhTaskLinesWithinRange(&$inc, $firstdaytoshow, $lastdaytoshow, $f
}

print '<tr class="oddeven trforbreak nobold">' . "\n";
print '<td colspan="' . (2 + $addcolspan + $daysInRange) . '">';
print '<td colspan="' . (2 + $addcolspan + $daysInRange) . '"' . ($projectstatic->status == $projectstatic::STATUS_CLOSED ? 'style="background-color: #CBCDCD!important;"' : '') . '>';
print $projectstatic->getNomUrl(1, '', 0, '<strong>' . $langs->transnoentitiesnoconv("YourRole") . ':</strong> ' . $projectsrole[$lines[$i]->fk_project]);
if ($thirdpartystatic->id > 0) {
print ' - ' . $thirdpartystatic->getNomUrl(1);
Expand All @@ -957,6 +956,7 @@ function doliSirhTaskLinesWithinRange(&$inc, $firstdaytoshow, $lastdaytoshow, $f
print ' - ';
print '<span class="secondary" title="' . $projectstatic->title . '">' . dol_trunc($projectstatic->title, '64') . '</span>';
}
print ' - ' . $projectstatic->getLibStatut(5);

print '</td>';
print '</tr>';
Expand Down
2 changes: 1 addition & 1 deletion view/timespent_month.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
$project->fetch_thirdparty();
}

$onlyopenedproject = 1; // or -1
$onlyopenedproject = -1; // or -1
$morewherefilter = '';

if ($search_project_ref) {
Expand Down
2 changes: 1 addition & 1 deletion view/timespent_week.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
$project->fetch_thirdparty();
}

$onlyopenedproject = 1; // or -1
$onlyopenedproject = -1; // or -1
$morewherefilter = '';

if ($search_project_ref) {
Expand Down

0 comments on commit 892cfaa

Please sign in to comment.