diff --git a/module/task/model.php b/module/task/model.php index 5e297ecebf..6c1fcad9b4 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -2896,8 +2896,11 @@ class taskModel extends model public function updateEstimate($estimateID) { $oldEstimate = $this->getEstimateById($estimateID); - $estimate = fixer::input('post')->get(); $today = helper::today(); + $estimate = fixer::input('post') + ->setIF(is_numeric($this->post->consumed), 'consumed', (float)$this->post->consumed) + ->setIF(is_numeric($this->post->left), 'left', (float)$this->post->left) + ->get(); if(helper::isZeroDate($estimate->date)) return dao::$errors[] = $this->lang->task->error->dateEmpty; if($estimate->date > $today) return dao::$errors[] = $this->lang->task->error->date;