Skip to content

Commit

Permalink
[BUGFIX] Skip unprocessable pages in redirect slug update hook
Browse files Browse the repository at this point in the history
Resolves: #102374
Relates: #102140
Releases: main, 12.4
Change-Id: Ib3e1f60080c9e1c7a7839aa2fcb90f9d91d6a4ed
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81668
Tested-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Tested-by: core-ci <typo3@b13.com>
  • Loading branch information
mbrodala authored and o-ba committed Nov 15, 2023
1 parent 628b1bf commit 40cbfe1
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -76,10 +76,11 @@ public function processDatamap_afterDatabaseOperations(string $status, string $t
$persistedChangedItem = $this->persistedChangedItems[(int)$id] ?? null;

if (
$table !== 'pages'
$persistedChangedItem === null
|| $table !== 'pages'
|| $status !== 'update'
|| empty($fieldArray['slug'])
|| $persistedChangedItem?->getOriginal()['slug'] === $fieldArray['slug']
|| $persistedChangedItem->getOriginal()['slug'] === $fieldArray['slug']
|| $this->isNestedHookInvocation($dataHandler)
) {
return;
Expand Down

0 comments on commit 40cbfe1

Please sign in to comment.