Skip to content

Commit

Permalink
[BUGFIX] Do not handle page updates on new page with uid 0
Browse files Browse the repository at this point in the history
Fixes Uncaught TYPO3 Exception when a page with uid 0 is 
handed to the solr handlePageUpdate function.
  • Loading branch information
rr-it authored and dkd-kaehm committed Sep 23, 2022
1 parent 83c2f9d commit 3087075
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ public function handleContentElementDeletion(int $uid): void
*/
public function handlePageUpdate(int $uid, array $updatedFields = []): void
{
if ($uid === 0) {
return;
}
try {
if (isset($updatedFields['l10n_parent']) && (int)($updatedFields['l10n_parent']) > 0) {
$pid = $updatedFields['l10n_parent'];
Expand Down

0 comments on commit 3087075

Please sign in to comment.