Add toggle button to show/hide subtasks in task list view
This commit is contained in:
@@ -131,6 +131,23 @@ class SubtaskModel extends Base
|
||||
->format();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get subtasks for a list of tasks
|
||||
*
|
||||
* @param array $taskIds
|
||||
* @return array
|
||||
*/
|
||||
public function getAllByTaskIds(array $taskIds)
|
||||
{
|
||||
if (empty($taskIds)) {
|
||||
return array();
|
||||
}
|
||||
|
||||
return $this->subtaskListFormatter
|
||||
->withQuery($this->getQuery()->in('task_id', $taskIds))
|
||||
->format();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a subtask by the id
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user