diff options
Diffstat (limited to 'app/Model/TaskStatus.php')
-rw-r--r-- | app/Model/TaskStatus.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Model/TaskStatus.php b/app/Model/TaskStatus.php index 2b902815..ac35a96d 100644 --- a/app/Model/TaskStatus.php +++ b/app/Model/TaskStatus.php @@ -83,7 +83,13 @@ class TaskStatus extends Base */ public function closeTasksBySwimlaneAndColumn($swimlane_id, $column_id) { - $task_ids = $this->db->table(Task::TABLE)->eq('swimlane_id', $swimlane_id)->eq('column_id', $column_id)->findAllByColumn('id'); + $task_ids = $this->db + ->table(Task::TABLE) + ->eq('swimlane_id', $swimlane_id) + ->eq('column_id', $column_id) + ->eq(Task::TABLE.'.is_active', Task::STATUS_OPEN) + ->findAllByColumn('id'); + $this->closeMultipleTasks($task_ids); } |