* adjust the type of notify the story changed tasks.

This commit is contained in:
wangchunsheng
2010-03-30 03:09:02 +00:00
parent 773714091d
commit 39d41a3103
11 changed files with 38 additions and 26 deletions
+2 -1
View File
@@ -123,7 +123,8 @@ class taskModel extends model
->leftJoin(TABLE_USER)->alias('t3')
->on('t1.owner = t3.account')
->where('t1.project')->eq((int)$projectID)
->onCaseOf($status != 'all')->andWhere('t1.status')->in($status)->endCase()
->onCaseOf($status == 'needConfirm')->andWhere('t2.version > t1.storyVersion')->andWhere('t2.status = "active"')->endCase()
->onCaseOf($status != 'all' and $status != 'needConfirm')->andWhere('t1.status')->in($status)->endCase()
->orderBy($orderBy)
->page($pager)
->fetchAll();