This commit is contained in:
holan20180123
2020-08-12 08:15:40 +08:00
parent b6cd8c99a4
commit 29a2c25ef1
9 changed files with 20 additions and 2 deletions
+5
View File
@@ -1232,6 +1232,11 @@ class taskModel extends model
if($this->post->left == 0)
{
if($task->consumed == 0)
{
dao::$errors[] = sprintf($this->lang->error->notempty, $this->lang->task->consumed);
return false;
}
$task->status = 'done';
$task->finishedBy = $this->app->user->account;
$task->finishedDate = helper::now();