diff --git a/module/task/model.php b/module/task/model.php index 55aace1a44..a1f9d48b14 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -876,6 +876,8 @@ class taskModel extends model ->from(TABLE_TASKESTIMATE) ->where('id')->eq($estimateID) ->fetch(); + + /* Decide if the estimate is the last one of this task. */ $lastID = $this->dao->select('id') ->from(TABLE_TASKESTIMATE) ->where('task')->eq($estimate->task)