* delete useless code.

This commit is contained in:
wangyidong
2015-05-25 13:55:07 +08:00
parent ae4cd7ef86
commit c57df9104c
-14
View File
@@ -106,25 +106,11 @@ class release extends control
$release = $this->release->getById((int)$releaseID);
$this->commonAction($release->product);
$build = $this->build->getById($release->build);
if($release->build !=0)
{
/* Get stories and bugs. */
$orderBy = 'status_asc, stage_asc, id_desc';
$stories = $this->story->getProjectStories($build->project, $orderBy);
$bugs = $this->bug->getProjectBugs($build->project);
}
else
{
$stories = array();
$bugs = array();
}
$this->view->title = $this->view->product->name . $this->lang->colon . $this->lang->release->edit;
$this->view->position[] = $this->lang->release->edit;
$this->view->release = $release;
$this->view->build = $build;
$this->view->stories = $stories;
$this->view->bugs = $bugs;
$this->view->builds = $this->loadModel('build')->getProductBuildPairs($release->product, 'notrunk');
$this->display();
}