* Fix bug for task multi.

This commit is contained in:
宋辰轩
2023-03-21 11:23:09 +08:00
parent b75042e76a
commit 4a3b0fa07e
+7
View File
@@ -91,6 +91,13 @@ class tasksEntry extends entry
$assignedTo = $this->request('assignedTo');
if($assignedTo and !is_array($assignedTo)) $this->setPost('assignedTo', array($assignedTo));
if($this->request('multiple'))
{
if(count($this->request('team')) != count($this->request('teamEstimate'))) return $this->sendError(400, 'Arrays team and teamEstimate should be the same length');
$this->setPost('mode', $this->request('mode', 'linear'));
$this->setPost('teamSource', array_fill(0, count($this->request('team')), ''));
}
$this->setPost('execution', $executionID);
$control = $this->loadController('task', 'create');