From 7e618f3d91fc5079055d46b1524488a712f82ce4 Mon Sep 17 00:00:00 2001 From: azhi Date: Tue, 30 Jul 2013 09:04:35 +0800 Subject: [PATCH] * finish task#1625. * finish task#1627. --- module/story/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/model.php b/module/story/model.php index e4d4f3ba14..5e83273df1 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -739,7 +739,7 @@ class storyModel extends model /* If no projects, in plan, stage is planned. No plan, wait. */ if(!$projects) { - $this->dao->update(TABLE_STORY)->set('stage')->eq('wait')->where('id')->eq((int)$storyID)->andWhere('plan')->eq(0)->andWhere('status')->eq('active')->exec(); + $this->dao->update(TABLE_STORY)->set('stage')->eq('wait')->where('id')->eq((int)$storyID)->andWhere('plan')->eq(0)->exec(); $this->dao->update(TABLE_STORY)->set('stage')->eq('planned')->where('id')->eq((int)$storyID)->andWhere('plan')->gt(0)->exec(); return true; }