From b7060b33ef317eeac576c504b1fb840d4471e411 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 12 Oct 2014 14:28:08 -0400 Subject: Add pagination/column sorting for search and completed tasks --- app/Model/Board.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'app/Model/Board.php') diff --git a/app/Model/Board.php b/app/Model/Board.php index 728d9d29..de47e6b9 100644 --- a/app/Model/Board.php +++ b/app/Model/Board.php @@ -234,14 +234,8 @@ class Board extends Base */ public function get($project_id, array $filters = array()) { - $this->db->startTransaction(); - $columns = $this->getColumns($project_id); - - $filters[] = array('column' => 'project_id', 'operator' => 'eq', 'value' => $project_id); - $filters[] = array('column' => 'is_active', 'operator' => 'eq', 'value' => Task::STATUS_OPEN); - - $tasks = $this->task->find($filters); + $tasks = $this->taskFinder->getOpenTasks($project_id); foreach ($columns as &$column) { @@ -254,8 +248,6 @@ class Board extends Base } } - $this->db->closeTransaction(); - return $columns; } -- cgit v1.2.3