From 34d024ed0dab2f9313dc40a7b40ddd694c43e522 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Mon, 25 Feb 2013 06:01:54 +0000 Subject: [PATCH] * fix a bug : task consumed error. --- module/task/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/task/model.php b/module/task/model.php index 635a33507d..72e05461da 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -892,7 +892,7 @@ class taskModel extends model ->where('id')->eq((int)$estimateID) ->exec(); $this->loadModel('action')->create('task', $oldEstimate->task, 'Recorded', $this->post->comment, $estimateID); - $consumed = $task->estimate + $estimate->consumed - $oldEstimate->consumed; + $consumed = $task->consumed + $estimate->consumed - $oldEstimate->consumed; $lastEstimate = $this->dao->select('*')->from(TABLE_TASKESTIMATE)->where('task')->eq($task->id)->orderBy('id desc')->fetch(); if($lastEstimate and $estimateID == $lastEstimate->id) {