* when assignTo action, log the diff.

This commit is contained in:
wangchunsheng
2012-05-03 01:00:10 +00:00
parent b6495d43b8
commit eda6a3a6c3
3 changed files with 9 additions and 13 deletions
+3 -1
View File
@@ -226,8 +226,10 @@ class task extends control
if(!empty($_POST))
{
$this->loadModel('action');
$actionID = $this->task->assign($taskID);
$changes = $this->task->assign($taskID);
if(dao::isError()) die(js::error(dao::getError()));
$actionID = $this->action->create('task', $taskID, 'Assigned', $this->post->comment, $this->post->assignedTo);
$this->action->logHistory($actionID, $changes);
$this->sendmail($taskID, $actionID);
die(js::locate($this->createLink('task', 'view', "taskID=$taskID"), 'parent'));