From cf349715f9af4bb0fb078ef5f656b685883b70ca Mon Sep 17 00:00:00 2001 From: wangzemei Date: Wed, 29 Oct 2025 13:11:44 +0800 Subject: [PATCH] * [task#151372] fix the issues of sonar. --- module/product/ui/browse.html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/product/ui/browse.html.php b/module/product/ui/browse.html.php index 9c63cc844b..8acb063038 100644 --- a/module/product/ui/browse.html.php +++ b/module/product/ui/browse.html.php @@ -535,7 +535,8 @@ $emptyTip = $lang->story->noStory; if($storyType == 'requirement') $emptyTip = $lang->story->noRequirement; if($storyType == 'epic') $emptyTip = $lang->story->noEpic; -$createStoryLink = hasPriv($storyType, 'create') ? createLink($storyType, 'create', 'product=' . (empty($productID) ? current(array_keys($projectProducts)) : $productID) . "&branch=$branch&moduleID=$moduleID&storyID=0&projectID=$projectID&bugID=0&planID=0&todoID=0&extra=&storyType=$storyType") . ($isProjectStory ? '#app=project' : '') : ''; +$createStoryLink = createLink($storyType, 'create', 'product=' . (empty($productID) ? current(array_keys($projectProducts)) : $productID) . "&branch=$branch&moduleID=$moduleID&storyID=0&projectID=$projectID&bugID=0&planID=0&todoID=0&extra=&storyType=$storyType") . ($isProjectStory ? '#app=project' : ''); +$createStoryLink = hasPriv($storyType, 'create') ? $createStoryLink : ''; dtable ( set::id('stories'),