#16753Indexed search displayes deleted and hidden pages.
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)Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.