* adjust action for task import from bug.

This commit is contained in:
shiyangyangwork@yahoo.cn
2011-12-06 00:55:37 +00:00
parent 34f44000cd
commit 197b0dfdee
3 changed files with 4 additions and 1 deletions

View File

@@ -648,6 +648,7 @@ class projectModel extends model
$taskID = $this->dao->lastInsertID();
if($task->story != false) $this->story->setStage($task->story);
$actionID = $this->loadModel('action')->create('task', $taskID, 'Opened', '');
$this->action->create('bug', $key, 'Totask', '', $taskID);
$this->dao->update(TABLE_BUG)->set('toTask')->eq($taskID)->where('id')->eq($key)->exec();
$mails[$key]->taskID = $taskID;
$mails[$key]->actionID = $actionID;