From 214d10d8684bf3558210f2c4310e095bbd07844e Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Mon, 1 Mar 2010 08:29:36 +0000 Subject: [PATCH] * fix the error when the task's status is cancel. --- trunk/module/story/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/module/story/model.php b/trunk/module/story/model.php index 4995c22bac..55128c073b 100644 --- a/trunk/module/story/model.php +++ b/trunk/module/story/model.php @@ -300,7 +300,7 @@ class storyModel extends model return; } /* 查找对应的任务。*/ - $tasks = $this->dao->select('type,status')->from(TABLE_TASK)->where('project')->in($projects)->andWhere('story')->eq($storyID)->fetchGroup('type'); + $tasks = $this->dao->select('type,status')->from(TABLE_TASK)->where('project')->in($projects)->andWhere('story')->eq($storyID)->andWhere('status')->ne('cancel')->fetchGroup('type'); /* 没有任务,则所处阶段为'已经立项'。*/ if(!$tasks)