* Optimize the method names and logic for create task.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user