Bug 28795

This commit is contained in:
曾刚
2022-10-21 07:59:09 +00:00
committed by 王怡栋
parent ea7ed2c31b
commit d2771a1dea
4 changed files with 25 additions and 5 deletions
+3 -2
View File
@@ -919,15 +919,16 @@ class execution extends control
* View a story.
*
* @param int $storyID
* @param int $executionID
* @access public
* @return void
*/
public function storyView($storyID)
public function storyView($storyID, $executionID = 0)
{
$this->session->set('productList', $this->app->getURI(true), 'product');
$story = $this->loadModel('story')->getByID($storyID);
echo $this->fetch('story', 'view', "storyID=$storyID&version=$story->version&param=" . $this->session->execution);
echo $this->fetch('story', 'view', "storyID=$storyID&version=$story->version&param=" . ($executionID ? $executionID : $this->session->execution));
}
/**