diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-03-26 21:09:40 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-03-26 21:09:40 -0400 |
commit | 93fa9b5cba4bf343d3c5dd97420cea81beaf6e88 (patch) | |
tree | 4147c65436506b6bb6b3ace18e64a1278fe8ad5d | |
parent | d48dfcf2faeaf2d2333eaada2f92959fe2cfcbf1 (diff) |
Fetch only subtasks with status=todo
-rw-r--r-- | app/Model/SubtaskForecast.php | 1 |
1 files changed, 1 insertions, 0 deletions
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(); } |