* finish task #3442.

This commit is contained in:
wangyidong
2017-12-14 15:29:09 +08:00
parent fc70d4ffdb
commit 11d80a5d93
12 changed files with 49 additions and 7 deletions
+17
View File
@@ -104,6 +104,23 @@ class action extends control
}
}
/**
* Comment.
*
* @param string $objectType
* @param int $objectID
* @access public
* @return void
*/
public function comment($objectType, $objectID)
{
$actionID = $this->action->create($objectType, $objectID, 'Commented', $this->post->comment);
$moduleName = $objectType == 'case' ? 'testcase' : $objectType;
$this->loadModel($moduleName)->sendmail($objectID, $actionID);
die(js::reload('parent'));
}
/**
* Edit comment of a action.
*