Skip to content

Commit

Permalink
[BUGFIX] Fix regression in page indexer if translated page is not ava…
Browse files Browse the repository at this point in the history
…ilable. fixes #243
  • Loading branch information
christianbltr committed Aug 23, 2024
1 parent ce5e8a6 commit 47d7447
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ ChangeLog

Upcoming version
[BUGFIX] Fix cropping if "resultChars" is empty. Thanks to Andreas Kießling. https://github.com/tpwd/ke_search/issues/242
[BUGFIX] Fix regression in page indexer if translated page is not available. Thanks to Jens Vollmer. https://github.com/tpwd/ke_search/issues/243

Version 5.5.1, 16 August 2024
[FEATURE] Add garbage collection for statistics table
Expand Down
13 changes: 7 additions & 6 deletions Classes/Indexer/Types/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -801,12 +801,13 @@ public function getPageContent($uid)
);
$this->counter++;
} else {
$this->pObj->logger->debug(
'Skipping page "' . $pageTitle . '"',
$this->cachedPageRecords[$language_uid][$uid]
);
if ($this->indexingMode == self::INDEXING_MODE_INCREMENTAL) {
$this->removeRecordFromIndex('page', $this->cachedPageRecords[$language_uid][$uid]);
if (isset($this->cachedPageRecords[$language_uid][$uid])) {
$this->pObj->logger->debug(
'Skipping page "' . $pageTitle . '" (UID ' . $uid . ', L ' . $language_uid . ')'
);
if ($this->indexingMode == self::INDEXING_MODE_INCREMENTAL) {
$this->removeRecordFromIndex('page', $this->cachedPageRecords[$language_uid][$uid]);
}
}
}
}
Expand Down

0 comments on commit 47d7447

Please sign in to comment.