From 7ed3db1651e86b789c95e1b9858dfcafe08cec0d Mon Sep 17 00:00:00 2001 From: zenggang Date: Wed, 10 Aug 2022 05:12:23 +0000 Subject: [PATCH] * Adjust code --- module/search/control.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/module/search/control.php b/module/search/control.php index 2cdee4a507..d8d664c414 100644 --- a/module/search/control.php +++ b/module/search/control.php @@ -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;