From 6cdeacd9ac677f66b47880287c23681d1860ea34 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Tue, 12 Apr 2022 07:51:55 +0000 Subject: [PATCH] * Fix bug #21374. --- module/story/control.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/story/control.php b/module/story/control.php index 8c9bb6ad70..d2b43529cb 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -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));