From e319da311d6df3b2045633fde0b5f4cd5ef1d8ed Mon Sep 17 00:00:00 2001 From: sunguangming Date: Wed, 3 Jul 2024 04:15:36 +0000 Subject: [PATCH] * [bug#51984,done,0.1h] fix bug. --- module/product/ui/browse.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/product/ui/browse.html.php b/module/product/ui/browse.html.php index 52afed6e7c..d94b1dc4a2 100644 --- a/module/product/ui/browse.html.php +++ b/module/product/ui/browse.html.php @@ -381,7 +381,7 @@ featureBar li(searchToggle(set::open($browseType == 'bysearch' || $storyBrowseType == 'bysearch'), set::module($config->product->search['module']))) ); -$canExport = $isProjectStory ? hasPriv('projectstory', 'export') : hasPriv($storyType, 'export'); +$canExport = $isProjectStory ? hasPriv('projectstory', 'export') && $productID : hasPriv($storyType, 'export'); $canReport = $isProjectStory ? hasPriv('projectstory', 'report') : hasPriv($storyType, 'report'); $reportUrl = $isProjectStory ? helper::createLink('projectstory', 'report', "productID=$productID&branchID=$branch&storyType=$storyType&browseType=$browseType&moduleID=$moduleID&chartType=pie&projectID=$projectID") : helper::createLink($storyType, 'report', "productID=$productID&branchID=$branch&storyType=$storyType&browseType=$browseType&moduleID=$moduleID"); $exportUrl = $isProjectStory ? helper::createLink('projectstory', 'export', "productID=$productID&orderBy=$orderBy&executionID=$projectID&browseType=$browseType") : helper::createLink($storyType, 'export', "productID=$productID&orderBy=$orderBy&executionID=$projectID&browseType=$browseType");