* adjust check onlybody.

* adjust task-record.
This commit is contained in:
wangyidong
2013-01-21 05:26:47 +00:00
parent 89951d5400
commit 844dc2ae10
9 changed files with 25 additions and 6 deletions
+2 -1
View File
@@ -430,7 +430,7 @@ class task extends control
* @access public
* @return void
*/
public function record($taskID, $confirm = 'no')
public function record($taskID)
{
$this->commonAction($taskID);
@@ -439,6 +439,7 @@ class task extends control
$changes = $this->task->record($taskID);
$actionID = $this->action->create('task', $taskID, 'Recorded', $this->post->comment, (float)$this->post->consumed);
$this->action->logHistory($actionID, $changes);
if(isonlybody()) die(js::reload('parent.parent'));
die(js::locate($this->createLink('task', 'view', "taskID=$taskID"), 'parent'));
}