Project

General

Profile

Actions

Bug #16753

closed

Indexed search displayes deleted and hidden pages.

Added by Michael Fritz almost 18 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2006-11-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Even permanently deleted pages appearing in the indexed_search and those results cannot be deleted from the indexed_search.

Its not a very cool patch but it works.

Patch:

typo3\sysext\indexed_search\pi\class.tx_indexedsearch.php
Line 1192 function checkResume($row) {

//PATCH PATCH PATCH PATCH PATCH MFR
//check, if the found page is still online / existing
if (intval($row['page_id'])>0) {
$pagecheck = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'pages', 'uid = '.intval($row['page_id']).' '.$this->cObj->enableFields('pages'),'','',1);
if ($GLOBALS['TYPO3_DB']->sql_num_rows($pagecheck)===0) {
return false;
}
}
//PATCH PATCH PATCH PATCH PATCH MFR
// If the record is indexed by an indexing configuration, just show it.
// At least this is needed for external URLs and files.
// For records we might need to extend this - for instance block display if record is access restricted.
if ($row['freeIndexUid']) {
(issue imported from #M4592)

Files

class.crawler.php (33.6 KB) class.crawler.php Administrator Admin, 2007-01-05 18:09
bug_4592.diff (3.5 KB) bug_4592.diff Administrator Admin, 2007-01-05 20:32

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #16978: deleteFromIndex method in indexed_search/class.crawler.php fails on deleting/hiding non-indexed pagesClosedMichael Stucki2007-02-12

Actions
Actions

Also available in: Atom PDF