* [task#143102,done,1h] remove unused code.

This commit is contained in:
sunguangming
2025-05-19 10:26:26 +08:00
committed by 刘刚
parent 7a0b10496e
commit 681f272029
12 changed files with 1 additions and 367 deletions
-4
View File
@@ -65,10 +65,6 @@ class task extends control
$taskData = $this->taskZen->buildTaskForCreate($this->post->execution ? (int)$this->post->execution : $executionID);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
/* Check whether a task with the same name is created within the specified time. */
$duplicateTaskID = $this->taskZen->checkDuplicateName($taskData);
if($duplicateTaskID) return $this->send(array('result' => 'success', 'message' => sprintf($this->lang->duplicate, $this->lang->task->common), 'load' => $this->createLink('task', 'view', "taskID={$duplicateTaskID}")));
$this->dao->begin();
if($this->post->type == 'test' && $this->post->selectTestStory == 'on')
{