* Finish task #68996.

This commit is contained in:
liugang
2022-09-14 16:37:27 +08:00
parent c8a1ccac36
commit 6d750abaf0
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -347,6 +347,7 @@ class product extends control
$this->view->storyType = $storyType;
$this->view->from = $this->app->tab;
$this->view->modulePairs = $showModule ? $this->tree->getModulePairs($productID, 'story', $showModule) : array();
$this->view->project = $this->loadModel('project')->getByID($projectID);
$this->display();
}
+1 -1
View File
@@ -208,7 +208,7 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : '';
$buttonTitle = $lang->execution->linkStoryByPlan;
$dataToggle = 'data-toggle="modal"';
}
if(common::hasPriv('projectstory', 'linkStory'))
if(!empty($project->hasProduct) && common::hasPriv('projectstory', 'linkStory'))
{
$buttonLink = $this->createLink('projectstory', 'linkStory', "project=$projectID");
$buttonTitle = $lang->execution->linkStory;