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
Ports: TYPO3-Solr#3770
  • Loading branch information
dkd-kaehm committed Sep 11, 2023
1 parent 01a4c6f commit aaa8efa
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ protected function deleteIndexDocuments(string $table, int $uid, int $language =
try {
$site = $indexQueueItem->getSite();
} catch (InvalidArgumentException $e) {
$site = null;
}

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

0 comments on commit aaa8efa

Please sign in to comment.