FIX display project tasks list columns (#24557)

* fix: display columns

* fix fix

* fix: IDE
This commit is contained in:
atm-steve 2023-07-16 12:02:14 +02:00 committed by GitHub
parent b080c2699b
commit b307ecea40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -913,21 +913,24 @@ function projectLinesa(&$inc, $parent, &$lines, &$level, $var, $showproject, &$t
if ($showproject) {
print '<td></td><td></td>';
}
if (count($arrayfields) > 0 && !empty($arrayfields['t.label']['checked'])) {
if (count($arrayfields) > 0 && ! empty($arrayfields['t.label']['checked'])) {
print '<td></td>';
}
if (count($arrayfields) > 0 && !empty($arrayfields['t.dateo']['checked'])) {
if (count($arrayfields) > 0 && ! empty($arrayfields['t.description']['checked'])) {
print '<td></td>';
}
if (count($arrayfields) > 0 && !empty($arrayfields['t.datee']['checked'])) {
if (count($arrayfields) > 0 && ! empty($arrayfields['t.dateo']['checked'])) {
print '<td></td>';
}
if (count($arrayfields) > 0 && !empty($arrayfields['t.planned_workload']['checked'])) {
if (count($arrayfields) > 0 && ! empty($arrayfields['t.datee']['checked'])) {
print '<td></td>';
}
if (count($arrayfields) > 0 && ! empty($arrayfields['t.planned_workload']['checked'])) {
print '<td class="nowrap liste_total right">';
print convertSecondToTime($total_projectlinesa_planned, 'allhourmin');
print '</td>';
}
if (count($arrayfields) > 0 && !empty($arrayfields['t.duration_effective']['checked'])) {
if (count($arrayfields) > 0 && ! empty($arrayfields['t.duration_effective']['checked'])) {
print '<td class="nowrap liste_total right">';
if ($projectidfortotallink > 0) {
print '<a href="'.DOL_URL_ROOT.'/projet/tasks/time.php?projectid='.$projectidfortotallink.($showproject ? '' : '&withproject=1').'">';
@ -1021,6 +1024,9 @@ function projectLinesa(&$inc, $parent, &$lines, &$level, $var, $showproject, &$t
if (count($arrayfields) > 0 && !empty($arrayfields['c.assigned']['checked'])) {
print '<td></td>';
}
if (! empty($totalarray['nbfield'])) {
print '<td colspan="'.$totalarray['nbfield'].'" class=""></td>';
}
print '<td class=""></td>';
print '</tr>';
}