* code for task#386.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user