* Fix bug .

This commit is contained in:
mayue
2022-08-04 14:08:43 +08:00
parent 436cf26588
commit 63c9e6a6c0
-2
View File
@@ -3999,14 +3999,12 @@ class taskModel extends model
public function saveTaskMove($productID = 0)
{
$data = fixer::input('post')->get();
$targetTaskID = explode('-', $data->dropTarget)[1];
$IdList = explode('-', $data->id);
$executionID = $IdList[0];
$taskID = $IdList[1];
$index = (int)$data->index;
$oldTask = $this->loadModel('task')->getByID($taskID);
$targetTask = $this->loadModel('task')->getByID($targetTaskID);
$execution = $this->loadModel('execution')->getByID($executionID);
$tasks = $this->dao->select('id')->from(TABLE_TASK)
->where('execution')->eq($executionID)