* Finish task #8378.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user