* Optimize the method names and logic for create task.

This commit is contained in:
tianshujie
2023-05-16 17:10:24 +08:00
parent 05a913e1c6
commit 80edbd838a
3 changed files with 30 additions and 19 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ class task extends control
if(!empty($_POST))
{
/* Prepare the data information before create the task. */
$result = $this->taskZen->prepareCreate($executionID, (float)$this->post->estimate, $this->post->estStarted, $this->post->deadline, (bool)$this->post->selectTestStory);
$result = $this->taskZen->buildForCreate($executionID, (float)$this->post->estimate, $this->post->estStarted, $this->post->deadline, (bool)$this->post->selectTestStory);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
list($task, $testTasks, $duplicateTaskID) = $result;