From e712bbd4e65ed9fb8b1d8034f11fbc81bbfc394c Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Sat, 12 Mar 2011 01:47:31 +0000 Subject: [PATCH] * when finishe the todo, don't change the date temp. --- module/todo/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/todo/model.php b/module/todo/model.php index 49510aa999..2e0c542205 100644 --- a/module/todo/model.php +++ b/module/todo/model.php @@ -83,7 +83,7 @@ class todoModel extends model public function mark($todoID, $status) { $status = ($status == 'done') ? 'wait' : 'done'; - $this->dao->update(TABLE_TODO)->set('status')->eq($status)->set('date')->eq($this->today())->where('id')->eq((int)$todoID)->exec(); + $this->dao->update(TABLE_TODO)->set('status')->eq($status)->where('id')->eq((int)$todoID)->exec(); $this->loadModel('action')->create('todo', $todoID, 'marked', '', $status); return; }