From 108061337dd52435a0ff42d8dab6811bc2f817e0 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Wed, 10 May 2023 07:36:48 +0000 Subject: [PATCH] * Delete code that duplicated with zen. --- module/task/model.php | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/module/task/model.php b/module/task/model.php index e9123d9f01..1f1eebe80e 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -600,27 +600,6 @@ class taskModel extends model if($taskID <= 0) return; $oldTask = $this->getByID($taskID); - if($this->post->estimate < 0 or $this->post->left < 0 or $this->post->consumed < 0) - { - dao::$errors[] = $this->lang->task->error->recordMinus; - return false; - } - - if(!empty($this->config->limitTaskDate)) - { - $this->checkEstStartedAndDeadline($oldTask->execution, $this->post->estStarted, $this->post->deadline); - if(dao::isError()) return false; - } - - if(!empty($_POST['lastEditedDate']) and $oldTask->lastEditedDate != $this->post->lastEditedDate) - { - dao::$errors[] = $this->lang->error->editedByOther; - return false; - } - - /* If a multiple task is assigned to a team member who is not the task, assign to the team member instead. */ - if(!$this->post->assignedTo and !empty($oldTask->team) and !empty($_POST['team'])) $_POST['assignedTo'] = $this->getAssignedTo4Multi($_POST['team'], $oldTask); - if(!$oldTask->mode and !$this->post->assignedTo and !empty($_POST['team'])) $_POST['assignedTo'] = $_POST['team'][0]; /* When the selected parent task is a common task and has consumption, select other parent tasks. */ if($this->post->parent > 0) @@ -632,8 +611,6 @@ class taskModel extends model if($task->consumed < $oldTask->consumed) return print(js::error($this->lang->task->error->consumedSmall)); - $task = $this->loadModel('file')->processImgURL($task, $this->config->task->editor->edit['id'], $this->post->uid); - if($this->post->team and count(array_filter($this->post->team)) > 1) { $teams = $this->manageTaskTeam($oldTask->mode, $taskID, $task->status);