diff --git a/module/doc/model.php b/module/doc/model.php index 81668bd14b..8304732723 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -419,6 +419,12 @@ class docModel extends model } $docs = $this->dao->select('*')->from(TABLE_DOC)->where('id')->in(array_keys($docs))->orderBy($sort)->page($pager)->fetchAll(); } + elseif($browseType == 'fastsearch') + { + if(!$this->post->searchDoc) return array(); + $docIdList = $this->getPrivDocs($libID, $moduleID); + $docs = $this->dao->select('*')->from(TABLE_DOC)->where('id')->in($docIdList)->andWhere('title')->like("%{$this->post->searchDoc}%")->orderBy($sort)->page($pager)->fetchAll(); + } $this->loadModel('common')->saveQueryCondition($this->dao->get(), 'doc'); if($docs) return $docs; diff --git a/module/doc/view/index.html.php b/module/doc/view/index.html.php index 10d25a843e..73446940b7 100644 --- a/module/doc/view/index.html.php +++ b/module/doc/view/index.html.php @@ -15,11 +15,9 @@