diff --git a/module/tree/model.php b/module/tree/model.php index 29c46ae075..77b091d814 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -1185,6 +1185,16 @@ class treeModel extends model $projectID = $extra['projectID']; $data->url = helper::createLink('projectstory', 'story', "projectID=$projectID&productID=$productID&branch=&browseType=byModule¶m={$module->id}&storyType=epic"); } + elseif(isset($extra['executionID']) && !empty($extra['executionID'])) + { + $executionID = $extra['executionID']; + $data->url = helper::createLink('execution', 'story', "executionID=$executionID&storyType=epic&orderBy=order_desc&type=byModule¶m={$module->id}"); + } + else + { + $branch = isset($extra['branchID']) ? $extra['branchID'] : 'all'; + $data->url = helper::createLink('product', 'browse', "root={$module->root}&branch=$branch&type=byModule¶m={$module->id}&storyType=epic"); + } return $data; }