parent
027f875ac6
commit
791c4abd57
|
|
@ -281,7 +281,7 @@ class SubtaskModel extends Base
|
|||
return $this->db->transaction(function (Database $db) use ($srcTaskId, $dstTaskId) {
|
||||
|
||||
$subtasks = $db->table(SubtaskModel::TABLE)
|
||||
->columns('title', 'time_estimated', 'position')
|
||||
->columns('title', 'time_estimated', 'position','user_id')
|
||||
->eq('task_id', $srcTaskId)
|
||||
->asc('position')
|
||||
->findAll();
|
||||
|
|
|
|||
|
|
@ -153,8 +153,8 @@ class SubtaskModelTest extends Base
|
|||
$this->assertEquals(0, $subtasks[1]['status']);
|
||||
|
||||
$this->assertEquals(0, $subtasks[0]['user_id']);
|
||||
$this->assertEquals(0, $subtasks[1]['user_id']);
|
||||
|
||||
$this->assertEquals(1, $subtasks[1]['user_id']);
|
||||
|
||||
$this->assertEquals(1, $subtasks[0]['position']);
|
||||
$this->assertEquals(2, $subtasks[1]['position']);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue