From 7c6fca1dd2256d17b1ba5c978b9a299fa50e58b2 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Mon, 28 Oct 2024 05:30:35 +0000 Subject: [PATCH] * [task#130797,done,0.2h] hide workflow group when disbaled. --- module/product/ui/view.html.php | 2 +- module/project/ui/view.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/product/ui/view.html.php b/module/product/ui/view.html.php index 4894fd377c..74388e3573 100644 --- a/module/product/ui/view.html.php +++ b/module/product/ui/view.html.php @@ -192,7 +192,7 @@ div icon('lane', setClass('pr-1')), $product->lineName ) : null, - $config->edition != 'open' && $product->workflowGroup ? div + $config->edition != 'open' && $product->workflowGroup && isset($workflowGroups[$product->workflowGroup]) ? div ( setClass('clip w-1/3'), set::title($lang->product->workflowGroup), diff --git a/module/project/ui/view.html.php b/module/project/ui/view.html.php index 3bb3b58240..0be3c799d8 100644 --- a/module/project/ui/view.html.php +++ b/module/project/ui/view.html.php @@ -277,7 +277,7 @@ row ( setClass('flex mt-4 program'), $programDom ? div(setClass('clip programBox w-1/2'), $programDom) : null, - $config->edition != 'open' && $project->workflowGroup ? div + $config->edition != 'open' && $project->workflowGroup && isset($workflowGroups[$project->workflowGroup]) ? div ( setClass('clip w-1/2'), set::title($lang->project->workflowGroup),