From 07c7280a2d70b7da0c3dcd3e912aacc8d8114fae Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 4 Aug 2014 05:43:09 +0000 Subject: [PATCH] * fix a bug. --- module/todo/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/todo/control.php b/module/todo/control.php index 6524b7c5cb..9ccfca1656 100644 --- a/module/todo/control.php +++ b/module/todo/control.php @@ -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);