From 0a0746fccefeb4d7340f4ad1498b6058b064b3dd Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Thu, 24 Feb 2022 14:27:42 +0800 Subject: [PATCH] * fix bug. --- extension/lite/projectstory/ext/control/story.php | 1 + 1 file changed, 1 insertion(+) diff --git a/extension/lite/projectstory/ext/control/story.php b/extension/lite/projectstory/ext/control/story.php index b71d6f24e9..8fbd6f73e5 100644 --- a/extension/lite/projectstory/ext/control/story.php +++ b/extension/lite/projectstory/ext/control/story.php @@ -3,6 +3,7 @@ class projectStory extends control { public function story($projectID = 0, $productID = 0, $branch = 0, $browseType = '', $param = 0, $storyType = 'story', $orderBy = '', $recTotal = 0, $recPerPage = 20, $pageID = 1) { + if(!$productID) $productID = $this->loadModel('product')->getProductIDByProject($projectID); echo $this->fetch('product', 'browse', "productID=$productID&branch=$branch&browseType=$browseType¶m=$param&storyType=$storyType&orderBy=$orderBy&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID&projectID=$projectID"); } }