* code for task #949.

This commit is contained in:
zhujinyong
2012-12-17 01:19:18 +00:00
parent 1ce56970e9
commit 15ea157a2c

View File

@@ -100,6 +100,7 @@ class doc extends control
}
$docQuery = str_replace("`product` = 'all'", '1', $this->session->docQuery); // Search all producti.
$docQuery = str_replace("`project` = 'all'", '1', $docQuery); // Search all project.
$docQuery = $this->loadModel('search')->replaceDynamic($docQuery);
$docs = $this->dao->select('*')->from(TABLE_DOC)->where($docQuery)
->andWhere('deleted')->eq(0)
->orderBy($orderBy)->page($pager)->fetchAll();