* set closed info when converted to story.

* closed the bug after converted to story.
This commit is contained in:
wangchunsheng
2011-12-07 01:24:16 +00:00
parent a264e5e348
commit 8514e02b81
3 changed files with 8 additions and 3 deletions
+2
View File
@@ -578,9 +578,11 @@ class bug extends control
{
$storyID = $this->bug->resolve($bugID);
if(dao::isError()) die(js::error(dao::getError()));
if($this->post->resolution == 'tostory')
{
$actionID = $this->action->create('bug', $bugID, 'ToStory', $this->post->comment, $storyID);
$this->action->create('bug', $bugID, 'Closed');
}
else
{