* Fix code error, rename variable.

This commit is contained in:
sunguangming
2023-05-23 10:15:58 +08:00
parent 12ececa3c7
commit 3483ff01a0
2 changed files with 30 additions and 37 deletions
+3 -3
View File
@@ -190,12 +190,12 @@ class task extends control
if(!empty($_POST))
{
/* Prepare and check data. */
$postData = form::data()->getAll(true);
$task = $this->taskZen->buildTaskForEdit($taskID, $postData);
$task = form::data($this->config->task->form->edit)->get();
$task = $this->taskZen->buildTaskForEdit($taskID, $task);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
/* Update task. */
$changes = $this->task->update($task, $postData);
$changes = $this->task->update($task);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
/* Record log. */