* fix a bug.

This commit is contained in:
wangyidong
2014-08-04 05:43:09 +00:00
parent 43d74e14e9
commit 07c7280a2d
+1 -1
View File
@@ -303,8 +303,8 @@ class todo extends control
*/
public function finish($todoID)
{
$this->todo->finish($todoID);
$todo = $this->todo->getById($todoID);
if($todo->status != 'done') $this->todo->finish($todoID);
if($todo->type == 'bug' or $todo->type == 'task')
{
$confirmNote = 'confirm' . ucfirst($todo->type);