From 4cc856344f0105fe893c384eeec6b14036321651 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Wed, 5 Oct 2016 20:37:51 -0400 Subject: Do not show closed tasks in task move position form --- app/Controller/TaskMovePositionController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/Controller/TaskMovePositionController.php') diff --git a/app/Controller/TaskMovePositionController.php b/app/Controller/TaskMovePositionController.php index 1a8eee45..a655ca0a 100644 --- a/app/Controller/TaskMovePositionController.php +++ b/app/Controller/TaskMovePositionController.php @@ -4,6 +4,7 @@ namespace Kanboard\Controller; use Kanboard\Core\Controller\AccessForbiddenException; use Kanboard\Formatter\BoardFormatter; +use Kanboard\Model\TaskModel; /** * Class TaskMovePositionController @@ -21,7 +22,10 @@ class TaskMovePositionController extends BaseController 'task' => $task, 'board' => BoardFormatter::getInstance($this->container) ->withProjectId($task['project_id']) - ->withQuery($this->taskFinderModel->getExtendedQuery()) + ->withQuery($this->taskFinderModel->getExtendedQuery() + ->eq(TaskModel::TABLE.'.is_active', TaskModel::STATUS_OPEN) + ->neq(TaskModel::TABLE.'.id', $task['id']) + ) ->format() ))); } -- cgit v1.2.3