* Fix bug#45573.

This commit is contained in:
xieqiyu
2024-01-30 16:37:13 +08:00
parent 74456c5b15
commit 29922257b4
+7 -1
View File
@@ -1710,7 +1710,13 @@ class storyZen extends story
*/
protected function getAfterReviewLocation(int $storyID, string $storyType = 'story', string $from = ''): string
{
if($from == 'project') return helper::createLink('projectstory', 'view', "storyID={$storyID}&projectID={$this->session->project}");
if($from == 'project')
{
$project = $this->project->getByID($this->session->project);
if($project && !$project->multiple) return helper::createLink('execution', 'storyView', "storyID=$storyID");
return helper::createLink('projectstory', 'view', "storyID={$storyID}&projectID={$this->session->project}");
}
if($from != 'execution') return helper::createLink('story', 'view', "storyID={$storyID}&version=0&param=0&storyType={$storyType}");
$execution = $this->execution->getByID($this->session->execution);