From 6e6deaa462910a6fd32cbfc16d9fb695b44fe89d Mon Sep 17 00:00:00 2001 From: zhouxin Date: Wed, 13 Apr 2022 07:59:57 +0000 Subject: [PATCH] * Fix bug #21374. --- module/common/model.php | 2 ++ module/product/view/browse.html.php | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/module/common/model.php b/module/common/model.php index 3ceaffc0e6..d5d43c2583 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -2738,6 +2738,8 @@ EOD; { global $config; + if(empty($object)) return true; + if($type == 'product' and empty($config->CRProduct) and $object->status == 'closed') return false; if($type == 'execution' and empty($config->CRExecution) and $object->status == 'closed') return false; diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php index 26c870a36a..a7e804d853 100644 --- a/module/product/view/browse.html.php +++ b/module/product/view/browse.html.php @@ -63,9 +63,9 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : ''; @@ -143,6 +143,7 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : ''; ?> + +