* Refactor updateTeam method and case.

This commit is contained in:
tianshujie
2023-08-23 11:21:34 +08:00
parent e8c09cb1e4
commit 0b963223e9
4 changed files with 15 additions and 25 deletions
+8 -1
View File
@@ -360,7 +360,14 @@ class taskTest
$task->id = $taskID;
$task->status = $status;
$task->lastEditedBy = $this->objectModel->app->user->account;
$object = $this->objectModel->updateTeam($task, $team, $teamSource, $teamEstimate, $teamConsumed, $teamLeft);
$postData = new stdclass();
$postData->team = $team;
$postData->teamSource = $teamSource;
$postData->teamEstimate = $teamEstimate;
$postData->teamConsumed = $teamConsumed;
$postData->teamLeft = $teamLeft;
$object = $this->objectModel->updateTeam($task, $postData);
if($getTeam) return $this->objectModel->getMultiTaskMembers($taskID);
if(dao::isError())