diff options
Diffstat (limited to 'app/Controller/TaskMovePositionController.php')
-rw-r--r-- | app/Controller/TaskMovePositionController.php | 6 |
1 files changed, 5 insertions, 1 deletions
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() ))); } |