* Adjust code
This commit is contained in:
@@ -216,12 +216,6 @@ class search extends control
|
||||
{
|
||||
$this->lang->admin->menu->search = "{$this->lang->search->common}|search|index";
|
||||
|
||||
$requirementIds = $this->dao->select('t1.id')->from(TABLE_SEARCHINDEX)->alias('t1')
|
||||
->leftJoin(TABLE_STORY)->alias('t2')->on('t1.objectID = t2.id')
|
||||
->where('t1.objectType')->eq('story')
|
||||
->andWhere('t2.type')->eq('requirement')
|
||||
->fetchPairs('id');
|
||||
$this->dao->update(TABLE_SEARCHINDEX)->set('objectType')->eq('requirement')->where('id')->in($requirementIds)->exec();
|
||||
if(empty($words)) $words = $this->get->words;
|
||||
if(empty($words)) $words = $this->post->words;
|
||||
if(empty($words) and ($recTotal != 0 or $pageID != 1)) $words = $this->session->searchIngWord;
|
||||
|
||||
Reference in New Issue
Block a user