* Fix for get all linked project stories.

This commit is contained in:
wangyidong
2024-05-29 13:43:14 +08:00
parent 184c0753e8
commit 8e3d177db5
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -901,7 +901,7 @@ class productZen extends product
* @access protected
* @return array
*/
protected function getStories(int $projectID, int $productID, string $branchID = '', int $moduleID = 0, int $param = 0, string $storyType = 'all', string $browseType = '', string $orderBy = 'id_desc', object $pager = null): array
protected function getStories(int $projectID, int $productID, string $branchID = '', int $moduleID = 0, int $param = 0, string $storyType = 'all', string $browseType = 'allstory', string $orderBy = 'id_desc', object $pager = null): array
{
/* Append id for second sort. */
$sort = common::appendOrder($orderBy);
+1
View File
@@ -95,6 +95,7 @@ class projectStory extends control
{
$project = $this->loadModel('project')->getByID($projectID);
$this->session->set('hasProduct', $project->hasProduct);
$this->config->project->showGrades = null;
echo $this->fetch('product', 'track', "productID=$productID&branch=$branch&projectID=$projectID&browseType=$browseType&param=$param&storyType=$storyType&orderBy=$orderBy&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID");
}