From 9202f79595d40c19f6d6a7c96fc23e73e7af78f9 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Mon, 8 Jul 2024 06:12:02 +0000 Subject: [PATCH] * [bug#52317,done,0.1h] fix bug. --- module/tree/model.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; }