diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-09-01 20:52:40 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-09-01 20:52:40 -0400 |
commit | 6bad0523e581c6af1ab06dce726e2af1a08d9017 (patch) | |
tree | 36515d03c7a2529e23375180125b1306890777d9 | |
parent | d9a6dc65be65f6a7be53edaf904baf7a9e40c51d (diff) |
Do not show closed tasks on public boards
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | app/Controller/BoardViewController.php | 7 |
2 files changed, 7 insertions, 1 deletions
@@ -30,6 +30,7 @@ Other changes: Bug fixes: +* Do not show closed tasks on public boards * Fix undefined constant in config example file * Fix PHP notice when sending overdue notifications * Fix wrong project date format (shown as 01/01/1970) diff --git a/app/Controller/BoardViewController.php b/app/Controller/BoardViewController.php index 97c99d11..10165908 100644 --- a/app/Controller/BoardViewController.php +++ b/app/Controller/BoardViewController.php @@ -4,6 +4,7 @@ namespace Kanboard\Controller; use Kanboard\Core\Controller\AccessForbiddenException; use Kanboard\Formatter\BoardFormatter; +use Kanboard\Model\TaskModel; /** * Board controller @@ -28,11 +29,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) ->withProjectId($project['id']) - ->withQuery($this->taskFinderModel->getExtendedQuery()) + ->withQuery($query) ->format() , 'title' => $project['name'], |