diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-04-29 17:44:06 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-04-29 17:44:06 -0400 |
commit | a34f83fb3044b51a8cb519a97ad27853ef4a068a (patch) | |
tree | fc32f9f7493c38c0a64efd94bb3ae331f491a62d /app/Model/TaskStatus.php | |
parent | fc8f8748b9f89167ca9e6f4670bbc5e032e068b7 (diff) |
Fix bug: closing all tasks by column, also update closed tasks
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); } |