* Finish task #68996.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user