From cb6baded870770ba97d324d8685da944a737e9c0 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Sat, 2 Mar 2013 15:16:17 +0000 Subject: [PATCH] * if finish task and consumed is not changed, don't record. --- 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 f9e25c5ccf..0bee4a118e 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -486,7 +486,7 @@ class taskModel extends model ->setDefault('left', 0) ->remove('finishedDate,comment')->get(); $estimate->consumed = $estimate->consumed - $oldTask->consumed; - $this->addTaskEstimate($estimate); + if($estimate->consumed) $this->addTaskEstimate($estimate); $this->setStatus($task);