* Fix bug #21374.
This commit is contained in:
@@ -229,8 +229,7 @@ class story extends control
|
||||
/* Set products, users and module. */
|
||||
if($objectID != 0)
|
||||
{
|
||||
global $config;
|
||||
$onlyNoClosed = empty($config->CRProduct) ? 'noclosed' : '';
|
||||
$onlyNoClosed = empty($this->config->CRProduct) ? 'noclosed' : '';
|
||||
$products = $this->product->getProductPairsByProject($objectID, $onlyNoClosed);
|
||||
$productID = empty($productID) ? key($products) : $productID;
|
||||
$product = $this->product->getById(($productID and array_key_exists($productID, $products)) ? $productID : key($products));
|
||||
|
||||
Reference in New Issue
Block a user