From b307ecea407fa93d0cbac4f0e2a9acfaa2765c6e Mon Sep 17 00:00:00 2001
From: atm-steve <85500090+atm-steve@users.noreply.github.com>
Date: Sun, 16 Jul 2023 12:02:14 +0200
Subject: [PATCH] FIX display project tasks list columns (#24557)
* fix: display columns
* fix fix
* fix: IDE
---
htdocs/core/lib/project.lib.php | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/htdocs/core/lib/project.lib.php b/htdocs/core/lib/project.lib.php
index 15162c8b273..5f0d474eaef 100644
--- a/htdocs/core/lib/project.lib.php
+++ b/htdocs/core/lib/project.lib.php
@@ -913,21 +913,24 @@ function projectLinesa(&$inc, $parent, &$lines, &$level, $var, $showproject, &$t
if ($showproject) {
print '
| | ';
}
- if (count($arrayfields) > 0 && !empty($arrayfields['t.label']['checked'])) {
+ if (count($arrayfields) > 0 && ! empty($arrayfields['t.label']['checked'])) {
print ' | ';
}
- if (count($arrayfields) > 0 && !empty($arrayfields['t.dateo']['checked'])) {
+ if (count($arrayfields) > 0 && ! empty($arrayfields['t.description']['checked'])) {
print ' | ';
}
- if (count($arrayfields) > 0 && !empty($arrayfields['t.datee']['checked'])) {
+ if (count($arrayfields) > 0 && ! empty($arrayfields['t.dateo']['checked'])) {
print ' | ';
}
- if (count($arrayfields) > 0 && !empty($arrayfields['t.planned_workload']['checked'])) {
+ if (count($arrayfields) > 0 && ! empty($arrayfields['t.datee']['checked'])) {
+ print ' | ';
+ }
+ if (count($arrayfields) > 0 && ! empty($arrayfields['t.planned_workload']['checked'])) {
print '';
print convertSecondToTime($total_projectlinesa_planned, 'allhourmin');
print ' | ';
}
- if (count($arrayfields) > 0 && !empty($arrayfields['t.duration_effective']['checked'])) {
+ if (count($arrayfields) > 0 && ! empty($arrayfields['t.duration_effective']['checked'])) {
print '';
if ($projectidfortotallink > 0) {
print '';
@@ -1021,6 +1024,9 @@ function projectLinesa(&$inc, $parent, &$lines, &$level, $var, $showproject, &$t
if (count($arrayfields) > 0 && !empty($arrayfields['c.assigned']['checked'])) {
print ' | | ';
}
+ if (! empty($totalarray['nbfield'])) {
+ print ' | ';
+ }
print ' | ';
print '';
}