* finish the task #610.

This commit is contained in:
shiyangyangwork@yahoo.cn
2011-11-21 06:09:08 +00:00
parent 574f4d7097
commit 744c43fedf
7 changed files with 57 additions and 5 deletions
+9 -2
View File
@@ -564,9 +564,16 @@ class bug extends control
if(!empty($_POST))
{
$this->bug->resolve($bugID);
$storyID = $this->bug->resolve($bugID);
if(dao::isError()) die(js::error(dao::getError()));
$actionID = $this->action->create('bug', $bugID, 'Resolved', $this->post->comment, $this->post->resolution);
if($this->post->resolution == 'tostory')
{
$actionID = $this->action->create('bug', $bugID, 'ToStory', $this->post->comment, $storyID);
}
else
{
$actionID = $this->action->create('bug', $bugID, 'Resolved', $this->post->comment, $this->post->resolution);
}
$this->sendmail($bugID, $actionID);
die(js::locate($this->createLink('bug', 'view', "bugID=$bugID"), 'parent'));
}