+ add the feature of confirm story changed bugs.

This commit is contained in:
wangchunsheng
2010-03-30 03:45:21 +00:00
parent bc54e61272
commit 6c4e2cc06b
6 changed files with 45 additions and 5 deletions

View File

@@ -123,7 +123,7 @@ class taskModel extends model
->leftJoin(TABLE_USER)->alias('t3')
->on('t1.owner = t3.account')
->where('t1.project')->eq((int)$projectID)
->onCaseOf($status == 'needConfirm')->andWhere('t2.version > t1.storyVersion')->andWhere('t2.status = "active"')->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)