* Finish task #8378.

This commit is contained in:
holan20180123
2020-11-17 14:04:50 +08:00
parent 3def724cd5
commit bb34dfe79b
26 changed files with 62 additions and 62 deletions
+2 -2
View File
@@ -1855,7 +1855,7 @@ EOD;
global $app, $config;
/* Check the product is closed. */
if(!empty($object->product) and is_numeric($object->product) and !empty($config->global->closedProductStatus))
if(!empty($object->product) and is_numeric($object->product) and empty($config->CRProduct))
{
$productID = trim($object->product, ',');
$product = $app->control->loadModel('product')->getByID($productID);
@@ -1864,7 +1864,7 @@ EOD;
/* Check the project is closed. */
$productModuleList = array('story', 'bug', 'testtask');
if(!in_array($module, $productModuleList) and !empty($object->project) and is_numeric($object->project) and !empty($config->global->closedProjectStatus))
if(!in_array($module, $productModuleList) and !empty($object->project) and is_numeric($object->project) and empty($config->CRProject))
{
$project = $app->control->loadModel('project')->getByID($object->project);
if($project->status == 'closed') return false;