From 4d65e01a38790d1cc69ce994eb2813c869611280 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Fri, 22 Apr 2022 09:00:55 +0800 Subject: [PATCH] * Fix bug#2442. --- module/datatable/control.php | 3 +++ module/product/view/browse.html.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/module/datatable/control.php b/module/datatable/control.php index 1ef379422c..2d52476456 100644 --- a/module/datatable/control.php +++ b/module/datatable/control.php @@ -92,6 +92,9 @@ class datatable extends control { unset($cols['plan']); unset($cols['stage']); + unset($cols['taskCount']); + unset($cols['bugCount']); + unset($cols['caseCount']); } $this->view->cols = $cols; diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php index b2727fb5ba..65f0077a04 100644 --- a/module/product/view/browse.html.php +++ b/module/product/view/browse.html.php @@ -313,7 +313,7 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : ''; { if($value->id == 'title' || $value->id == 'id' || $value->id == 'pri' || $value->id == 'status') { - if($storyType == 'requirement' and (in_array($value->id, array('plan', 'stage')))) $value->show = false; + if($storyType == 'requirement' and (in_array($value->id, array('plan', 'stage', 'taskCount', 'bugCount', 'caseCount')))) $value->show = false; if($value->show) { @@ -326,7 +326,7 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : ''; $value) { - if($storyType == 'requirement' and (in_array($value->id, array('plan', 'stage')))) $value->show = false; + if($storyType == 'requirement' and (in_array($value->id, array('plan', 'stage', 'taskCount', 'bugCount', 'caseCount')))) $value->show = false; if($value->show) {