* add testtask action in project

This commit is contained in:
chujilu
2014-08-14 10:35:13 +08:00
parent ee735923f6
commit 6fe88f5ec2
3 changed files with 10 additions and 0 deletions

View File

@@ -438,6 +438,9 @@ class testtask extends control
{
$actionID = $this->action->create('testtask', $taskID, 'Started', $this->post->comment);
$this->action->logHistory($actionID, $changes);
$testtask = $this->testtask->getById($taskID);
$projectActionID = $this->action->create('project', $testtask->project, 'starttesttask', '', $taskID);
}
die(js::locate($this->createLink('testtask', 'view', "taskID=$taskID"), 'parent'));
}
@@ -477,6 +480,9 @@ class testtask extends control
{
$actionID = $this->action->create('testtask', $taskID, 'Closed', $this->post->comment);
$this->action->logHistory($actionID, $changes);
$testtask = $this->testtask->getById($taskID);
$projectActionID = $this->action->create('project', $testtask->project, 'stoptesttask', '', $taskID);
}
die(js::locate($this->createLink('testtask', 'view', "taskID=$taskID"), 'parent'));
}