From 53e12e967c1df09dd30ff50a8aae27ee8aab1070 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 20 Jul 2022 08:48:51 +0800 Subject: [PATCH] * Finish task #61181. --- module/execution/config.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/module/execution/config.php b/module/execution/config.php index 6886b721d2..a79943e81e 100644 --- a/module/execution/config.php +++ b/module/execution/config.php @@ -139,7 +139,14 @@ $config->execution->gantt->linkType['end']['end'] = 2; $config->execution->gantt->linkType['begin']['end'] = 3; $config->execution->datatable = new stdclass(); -$config->execution->datatable->defaultField = array('id', 'name', 'code', 'project', 'PM', 'status', 'progress', 'percent', 'attribute', 'begin', 'end', 'estimate', 'consumed', 'left', 'burn', 'actions'); +if(!isset($config->setCode) or $config->setCode == 1) +{ + $config->execution->datatable->defaultField = array('id', 'name', 'code', 'project', 'PM', 'status', 'progress', 'percent', 'attribute', 'begin', 'end', 'estimate', 'consumed', 'left', 'burn', 'actions'); +} +else +{ + $config->execution->datatable->defaultField = array('id', 'name', 'project', 'PM', 'status', 'progress', 'percent', 'attribute', 'begin', 'end', 'estimate', 'consumed', 'left', 'burn', 'actions'); +} $config->execution->datatable->fieldList['id']['title'] = 'idAB'; $config->execution->datatable->fieldList['id']['fixed'] = 'left';