Add toggle button to show/hide subtasks in task list view

This commit is contained in:
Frederic Guillot
2017-02-26 19:30:02 -05:00
parent 4f325193be
commit f3deb6492a
28 changed files with 257 additions and 89 deletions

View File

@@ -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
*