* Finish task #7429.

This commit is contained in:
sgm0422
2020-07-14 11:21:12 +08:00
parent 37d55f1f36
commit 2e454b1415
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -1208,6 +1208,7 @@ class taskModel extends model
public function start($taskID)
{
$oldTask = $this->getById($taskID);
if($oldTask->status == 'doing') dao::$errors[] = $this->lang->task->error->alreadyStarted;
if(!empty($oldTask->team))
{
if($this->post->consumed < $oldTask->team[$this->app->user->account]->consumed) dao::$errors['consumed'] = $this->lang->task->error->consumedSmall;