From 93fa9b5cba4bf343d3c5dd97420cea81beaf6e88 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 26 Mar 2015 21:09:40 -0400 Subject: Fetch only subtasks with status=todo --- app/Model/SubtaskForecast.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Model/SubtaskForecast.php b/app/Model/SubtaskForecast.php index 5daee56b..cb86f6d7 100644 --- a/app/Model/SubtaskForecast.php +++ b/app/Model/SubtaskForecast.php @@ -29,6 +29,7 @@ class SubtaskForecast extends Base ->asc(Task::TABLE.'.position') ->asc(Subtask::TABLE.'.position') ->gt(Subtask::TABLE.'.time_estimated', 0) + ->eq(Subtask::TABLE.'.status', Subtask::STATUS_TODO) ->eq(Subtask::TABLE.'.user_id', $user_id) ->findAll(); } -- cgit v1.2.3