* Modify the overview of the project, only one product is counted.

This commit is contained in:
qiyu-xie
2020-12-14 16:35:48 +08:00
parent ff67859fd0
commit db55458c15
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -735,9 +735,9 @@ class productModel extends model
/**
* Get the total number of requirements associated with the product.
*
* @param array $productIdList
* @param array $type
* @param array $status closed|active|draft
* @param array $productIdList
* @param string $type
* @param string $status closed|active|draft
* @access public
* @return array
*/
+1 -1
View File
@@ -925,7 +925,7 @@ class programModel extends model
foreach($projectIdList as $projectID)
{
$productIdList = $this->loadModel('product')->getProductIDByProject($projectID);
$productIdList = $this->loadModel('product')->getProductIDByProject($projectID, false);
$allStories[$projectID] = $this->product->getTotalStoriesByProduct($productIdList, 'story');
$doneStories[$projectID] = $this->product->getTotalStoriesByProduct($productIdList, 'story', 'closed');
$leftStories[$projectID] = $this->product->getTotalStoriesByProduct($productIdList, 'story', 'active');