* code for task#386.

This commit is contained in:
zhujinyong
2012-12-19 08:29:23 +00:00
parent 27c8372f87
commit 12d1bce624
3 changed files with 3 additions and 3 deletions

View File

@@ -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
{

View File

@@ -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");
}

View File

@@ -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);