Do not show closed tasks on public boards
This commit is contained in:
@@ -30,6 +30,7 @@ Other changes:
|
|||||||
|
|
||||||
Bug fixes:
|
Bug fixes:
|
||||||
|
|
||||||
|
* Do not show closed tasks on public boards
|
||||||
* Fix undefined constant in config example file
|
* Fix undefined constant in config example file
|
||||||
* Fix PHP notice when sending overdue notifications
|
* Fix PHP notice when sending overdue notifications
|
||||||
* Fix wrong project date format (shown as 01/01/1970)
|
* Fix wrong project date format (shown as 01/01/1970)
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ namespace Kanboard\Controller;
|
|||||||
|
|
||||||
use Kanboard\Core\Controller\AccessForbiddenException;
|
use Kanboard\Core\Controller\AccessForbiddenException;
|
||||||
use Kanboard\Formatter\BoardFormatter;
|
use Kanboard\Formatter\BoardFormatter;
|
||||||
|
use Kanboard\Model\TaskModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Board controller
|
* Board controller
|
||||||
@@ -28,11 +29,15 @@ class BoardViewController extends BaseController
|
|||||||
throw AccessForbiddenException::getInstance()->withoutLayout();
|
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(
|
$this->response->html($this->helper->layout->app('board/view_public', array(
|
||||||
'project' => $project,
|
'project' => $project,
|
||||||
'swimlanes' => BoardFormatter::getInstance($this->container)
|
'swimlanes' => BoardFormatter::getInstance($this->container)
|
||||||
->withProjectId($project['id'])
|
->withProjectId($project['id'])
|
||||||
->withQuery($this->taskFinderModel->getExtendedQuery())
|
->withQuery($query)
|
||||||
->format()
|
->format()
|
||||||
,
|
,
|
||||||
'title' => $project['name'],
|
'title' => $project['name'],
|
||||||
|
|||||||
Reference in New Issue
Block a user