Merge branch 'sprint/189_package'

This commit is contained in:
wangyidong
2022-05-24 10:32:09 +08:00
58 changed files with 715 additions and 444 deletions
+2 -1
View File
@@ -162,7 +162,8 @@ class task extends control
$this->action->create('todo', $todoID, 'finished', '', "TASK:$taskID");
}
$this->executeHooks($taskID);
$message = $this->executeHooks($taskID);
if($message) $this->lang->saveSuccess = $message;
/* Return task id when call the API. */
if($this->viewType == 'json' or (defined('RUN_MODE') && RUN_MODE == 'api')) return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'id' => $taskID));