summaryrefslogtreecommitdiff
path: root/app/Controller/BoardViewController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/BoardViewController.php')
-rw-r--r--app/Controller/BoardViewController.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/Controller/BoardViewController.php b/app/Controller/BoardViewController.php
index 97c99d11..9ef77e54 100644
--- a/app/Controller/BoardViewController.php
+++ b/app/Controller/BoardViewController.php
@@ -3,7 +3,7 @@
namespace Kanboard\Controller;
use Kanboard\Core\Controller\AccessForbiddenException;
-use Kanboard\Formatter\BoardFormatter;
+use Kanboard\Model\TaskModel;
/**
* Board controller
@@ -28,11 +28,15 @@ class BoardViewController extends BaseController
throw AccessForbiddenException::getInstance()->withoutLayout();
}
+ $query = $this->taskFinderModel
+ ->getExtendedQuery()
+ ->eq(TaskModel::TABLE.'.is_active', TaskModel::STATUS_OPEN);
+
$this->response->html($this->helper->layout->app('board/view_public', array(
'project' => $project,
- 'swimlanes' => BoardFormatter::getInstance($this->container)
+ 'swimlanes' => $this->boardFormatter
->withProjectId($project['id'])
- ->withQuery($this->taskFinderModel->getExtendedQuery())
+ ->withQuery($query)
->format()
,
'title' => $project['name'],
@@ -63,7 +67,7 @@ class BoardViewController extends BaseController
'board_highlight_period' => $this->configModel->get('board_highlight_period'),
'swimlanes' => $this->taskLexer
->build($search)
- ->format(BoardFormatter::getInstance($this->container)->withProjectId($project['id']))
+ ->format($this->boardFormatter->withProjectId($project['id']))
)));
}
}