* Fix bug #26723.
This commit is contained in:
@@ -1868,7 +1868,7 @@ class bugModel extends model
|
||||
->orderBy($orderBy)->page($pager)->fetchAll();
|
||||
}
|
||||
|
||||
$this->loadModel('common')->saveQueryCondition($this->dao->get(), 'bug');
|
||||
$this->loadModel('common')->saveQueryCondition($this->dao->get(), 'bug', false);
|
||||
|
||||
return $bugs;
|
||||
}
|
||||
@@ -1936,7 +1936,7 @@ class bugModel extends model
|
||||
->fetchAll('id');
|
||||
}
|
||||
|
||||
$this->loadModel('common')->saveQueryCondition($this->dao->get(), 'bug');
|
||||
$this->loadModel('common')->saveQueryCondition($this->dao->get(), 'bug', false);
|
||||
|
||||
return $bugs;
|
||||
}
|
||||
|
||||
@@ -2232,7 +2232,6 @@ EOD;
|
||||
$queryCondition = explode(' ORDER BY ', $sql);
|
||||
$queryCondition = $queryCondition[0];
|
||||
}
|
||||
$queryCondition = preg_replace('/((AND)|(OR)) *t2.\w+ * [^ ]+ [^ ]+/', '', $queryCondition);
|
||||
$queryCondition = trim($queryCondition);
|
||||
if(empty($queryCondition)) $queryCondition = "1=1";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user