* Finish task #8669.

This commit is contained in:
tianshujie98
2020-12-16 15:35:46 +08:00
parent 9a214bbae2
commit b6fd197901
2 changed files with 1 additions and 3 deletions
+1 -2
View File
@@ -1030,8 +1030,7 @@ class task extends control
if($this->post->comment != '' or !empty($changes))
{
$action = (!empty($changes)) ? 'Closed' : 'Commented';
$actionID = $this->action->create('task', $taskID, $action, $this->post->comment);
$actionID = $this->action->create('task', $taskID, 'Closed', $this->post->comment);
$this->action->logHistory($actionID, $changes);
}
-1
View File
@@ -1689,7 +1689,6 @@ class taskModel extends model
public function close($taskID)
{
$oldTask = $this->dao->select('*')->from(TABLE_TASK)->where('id')->eq($taskID)->fetch();
if($oldTask->status == 'closed') return array();
$now = helper::now();
$task = fixer::input('post')