From f83c1aa38d426d668b8c8f430ae89cf8eec196e8 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Tue, 27 Jun 2023 15:26:52 +0800 Subject: [PATCH] * Code for task #95917. --- module/product/model.php | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/module/product/model.php b/module/product/model.php index 45d7ff44bf..bd8a52f2c7 100755 --- a/module/product/model.php +++ b/module/product/model.php @@ -1894,23 +1894,24 @@ class productModel extends model /** * Get product stats. * - * @param string $orderBy - * @param object $pager - * @param string $status - * @param int $line - * @param string $storyType requirement|story - * @param int $programID - * @param int $param + * @param string $orderBy + * @param mixed $pager + * @param string $status + * @param int $line + * @param string $storyType + * @param int $programID + * @param int $param + * @param int $shadow * @access public - * @return array + * @return void */ - public function getStats($orderBy = 'order_asc', $pager = null, $status = 'noclosed', $line = 0, $storyType = 'story', $programID = 0, $param = 0) + public function getStats($orderBy = 'order_asc', $pager = null, $status = 'noclosed', $line = 0, $storyType = 'story', $programID = 0, $param = 0, $shadow = 0) { $this->loadModel('report'); $this->loadModel('story'); $this->loadModel('bug'); - $products = $status == 'bySearch' ? $this->getListBySearch($param) : $this->getList($programID, $status, $limit = 0, $line, 0, 'id'); + $products = $status == 'bySearch' ? $this->getListBySearch($param) : $this->getList($programID, $status, $limit = 0, $line, $shadow, 'id'); if(empty($products)) return array(); $productKeys = array_keys($products);