Skip to content

Commit

Permalink
[BUGFIX] Delete index documents without available site
Browse files Browse the repository at this point in the history
Resolves: TYPO3-Solr#3769
Releases: main, 11.5
  • Loading branch information
eliashaeussler committed Aug 29, 2023
1 parent b15df83 commit 02293ce
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ protected function deleteIndexDocuments(string $table, int $uid, int $language =
try {
$site = $indexQueueItem->getSite();
} catch (InvalidArgumentException) {
$site = null;
}

if ($site === null) {
$this->queue->deleteItem($indexQueueItem->getType(), $indexQueueItem->getIndexQueueUid());
continue;
}
Expand Down

0 comments on commit 02293ce

Please sign in to comment.