From 554500aa493faa66b43b2ddce72338880a874724 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 4 Jul 2015 11:14:21 -0400 Subject: Refactoring to implement new layout with filters: board/calendar/list views (work in progress) --- app/Model/TaskPosition.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/Model/TaskPosition.php') diff --git a/app/Model/TaskPosition.php b/app/Model/TaskPosition.php index 0c4beb2d..a33a4029 100644 --- a/app/Model/TaskPosition.php +++ b/app/Model/TaskPosition.php @@ -28,6 +28,11 @@ class TaskPosition extends Base { $original_task = $this->taskFinder->getById($task_id); + // Ignore closed tasks + if ($original_task['is_active'] == Task::STATUS_CLOSED) { + return true; + } + $result = $this->calculateAndSave($project_id, $task_id, $column_id, $position, $swimlane_id); if ($result) { -- cgit v1.2.3