diff --git a/module/task/control.php b/module/task/control.php index c8f4358531..1e8514a7c5 100755 --- a/module/task/control.php +++ b/module/task/control.php @@ -378,15 +378,16 @@ class task extends control } /** - * Confirm story change + * 确认需求变更。 + * Confirm story change. * * @param int $taskID * @access public * @return void */ - public function confirmStoryChange($taskID) + public function confirmStoryChange(int $taskID) { - $task = $this->task->getById($taskID); + $task = $this->task->getByID($taskID); $this->dao->update(TABLE_TASK)->set('storyVersion')->eq($task->latestStoryVersion)->where('id')->eq($taskID)->exec(); $this->loadModel('action')->create('task', $taskID, 'confirmed', '', $task->latestStoryVersion);