* Code for task#633.

* Refactory the storyQueryCondition.
This commit is contained in:
chencongzhi520@gmail.com
2012-06-13 03:11:59 +00:00
parent c5c345b912
commit 8270d49148
11 changed files with 93 additions and 42 deletions
+1 -1
View File
@@ -349,7 +349,7 @@ class bug extends control
$productName = $this->products[$productID];
/* Get the previous and next bug. */
$tmpBugIDs = $this->dao->select('id')->from(TABLE_BUG)->where($this->session->storyReport)->fetchPairs('id');
$tmpBugIDs = $this->dao->select('id')->from(TABLE_BUG)->where($this->session->bugReport)->fetchPairs('id');
$bugIDs = ',' . implode(',', $tmpBugIDs) . ',';
$this->view->preAndNext = $this->loadModel('common')->getPreAndNextObject('bug', $bugIDs, $bugID);