* finish a bug #3327

This commit is contained in:
areyou123456
2012-07-01 06:19:51 +00:00
parent 63e35e85e5
commit fcccfb2440
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ var browseType = '<?php echo $browseType;?>';
echo "<span class='icon-gray-small-story-review' title='{$lang->story->review}'>&nbsp;</span>";
}
}
common::printLink('story', 'edit', '', '&nbsp;', '', "class='icon-green-small-edit' title='{$lang->edit}'", false);
common::printLink('story', 'edit', "storyID=$story->id", '&nbsp;', '', "class='icon-green-small-edit' title='{$lang->edit}'", false);
common::printLink('testcase', 'create', "productID=$story->product&module=0&from=&param=0&$vars", '&nbsp;', '', "class='icon-green-small-story-createCase' title='{$lang->story->createCase}'", false);
?>
</td>
+2 -1
View File
@@ -185,10 +185,11 @@ class release extends control
$stories = array();
$bugs = array();
$this->loadModel('bug');
$this->loadModel('story');
$build = $this->dao->select('project')->from(TABLE_BUILD)->where('id')->eq($buildID)->fetch();
if(!empty($build))
{
$stories = $this->loadModel('story')->getProjectStories($build->project, $orderBy);
$stories = $this->story->getProjectStories($build->project, $orderBy);
$bugs = $this->bug->getProjectBugs($build->project);
}
$this->view->productID = $productID;