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&" : ''; ?> + +