From 1b571a4d7de72d329969a914f627f8d685fb09fa Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 18 Jan 2024 15:48:45 +0800 Subject: [PATCH] * Fix bug #44345, hide product if the project doesn't have product. --- module/project/ui/testtask.html.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/project/ui/testtask.html.php b/module/project/ui/testtask.html.php index 7c507ffdc7..5ead9cde55 100644 --- a/module/project/ui/testtask.html.php +++ b/module/project/ui/testtask.html.php @@ -53,6 +53,8 @@ if(common::canModify('project', $project) and common::hasPriv('project', 'testre ), 'btnProps' => array('size' => 'sm', 'btnType' => 'secondary')); } +if(!$project->hasProduct) unset($config->project->dtable->testtask->fieldList['product']); + dtable ( set::id('taskTable'),