* if finish task and consumed is not changed, don't record.

This commit is contained in:
zhujinyong
2013-03-02 15:16:17 +00:00
parent 4f94ab2485
commit cb6baded87
+1 -1
View File
@@ -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);