From 12d1bce624aa7d92298f63bd332df6455814fbc0 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Wed, 19 Dec 2012 08:29:23 +0000 Subject: [PATCH] * code for task#386. --- module/action/model.php | 2 +- module/bug/model.php | 2 +- module/story/model.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/action/model.php b/module/action/model.php index 9688628a21..3e36a848df 100644 --- a/module/action/model.php +++ b/module/action/model.php @@ -423,7 +423,7 @@ class actionModel extends model /* If the sql not include 'project', add check purview for project. */ if(strpos($actionQuery, $allProject) === false) { - $actionQuery = $actionQuery . 'AND `project`' . helper::dbIN(array_keys($projects)); + $actionQuery = $actionQuery . ' AND `project`' . helper::dbIN(array_keys($projects)); } else { diff --git a/module/bug/model.php b/module/bug/model.php index 49d286feea..c1521c636a 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -1100,7 +1100,7 @@ class bugModel extends model /* check the purview of projects.*/ if(strpos($this->session->bugQuery, '`project`') === false) { - $var = $this->session->bugQuery . 'AND `project`' . helper::dbIN(array_keys($projects)); + $var = $this->session->bugQuery . ' AND `project`' . helper::dbIN(array_keys($projects)); $this->session->set('bugQuery', "$var"); } diff --git a/module/story/model.php b/module/story/model.php index 6b40845070..fd53e2d9a3 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -883,7 +883,7 @@ class storyModel extends model $storyQuery = str_replace($allProduct, '1', $this->session->storyQuery); $queryProductID = 'all'; } - $storyQuery = $storyQuery . 'AND `product`' . helper::dbIN(array_keys($products)); + $storyQuery = $storyQuery . ' AND `product`' . helper::dbIN(array_keys($products)); $storyQuery = $this->loadModel('search')->replaceDynamic($storyQuery); return $this->getBySQL($queryProductID, $storyQuery, $orderBy, $pager);