diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php index 65f0077a04..a92adadb01 100644 --- a/module/product/view/browse.html.php +++ b/module/product/view/browse.html.php @@ -138,7 +138,7 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : ''; $tab = $isProjectStory ? 'project' : 'product'; $class = common::hasPriv('story', 'export') ? '' : "class=disabled"; $misc = common::hasPriv('story', 'export') ? "data-toggle='modal' data-type='iframe' class='export' data-app='$tab'" : "class=disabled"; - $link = common::hasPriv('story', 'export') ? $this->createLink('story', 'export', "productID=$productID&orderBy=$orderBy&projectID=0&executionID=0&browseType=$browseType&type=$storyType") : '#'; + $link = common::hasPriv('story', 'export') ? $this->createLink('story', 'export', "productID=$productID&orderBy=$orderBy&executionID=0&browseType=$browseType&type=$storyType") : '#'; echo "
  • " . html::a($link, $lang->story->export, '', $misc) . "
  • "; ?> diff --git a/module/story/control.php b/module/story/control.php index 776d2299ae..6d302d4fff 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -2349,7 +2349,7 @@ class story extends control $productsType = $this->dao->select('id, type')->from(TABLE_PRODUCT)->where('id')->in($relatedProductIdList)->fetchPairs(); $relatedPlans = $this->dao->select('id, title')->from(TABLE_PRODUCTPLAN)->where('id')->in(join(',', $relatedPlanIdList))->fetchPairs(); $relatedStories = $this->dao->select('id,title')->from(TABLE_STORY)->where('id')->in($relatedStoryIdList)->fetchPairs(); - $relatedFiles = $this->dao->select('id, objectID, pathname, title')->from(TABLE_FILE)->where('objectType')->eq('story')->andWhere('objectID')->in($storyIdList)->andWhere('extra')->ne('editor')->fetchGroup('objectID'); + $relatedFiles = $this->dao->select('id, objectID, pathname, title')->from(TABLE_FILE)->where('objectType')->eq($type)->andWhere('objectID')->in($storyIdList)->andWhere('extra')->ne('editor')->fetchGroup('objectID'); $relatedSpecs = $this->dao->select('*')->from(TABLE_STORYSPEC)->where('`story`')->in($storyIdList)->orderBy('version desc')->fetchGroup('story'); $relatedBranch = array('0' => $this->lang->branch->main) + $this->dao->select('id, name')->from(TABLE_BRANCH)->where('id')->in($relatedBranchIdList)->fetchPairs(); $relatedModules = $this->loadModel('tree')->getAllModulePairs();