Skip to content
Snippets Groups Projects
Commit 06f1f367 authored by Christian Eßl's avatar Christian Eßl Committed by Kevin Appelt
Browse files

[BUGFIX] ext:seo widget: Ensure language exists in site

Ensure the language of the checked record actually exists in
the site, in case orphan records of other languages are
present.

Resolves: #100111
Releases: main
Change-Id: I5cb3d2e09cfc86b5d43eba9e16b3833afe18e6b8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78046


Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarKevin Appelt <kevin.appelt@icloud.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarKevin Appelt <kevin.appelt@icloud.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent b221f6cc
Branches
Tags
No related merge requests found
...@@ -53,7 +53,9 @@ final class PagesWithoutDescriptionDataProvider ...@@ -53,7 +53,9 @@ final class PagesWithoutDescriptionDataProvider
$pageId = $row['l10n_parent'] ?: $row['uid']; $pageId = $row['l10n_parent'] ?: $row['uid'];
try { try {
$site = $this->siteFinder->getSiteByPageId($pageId); $site = $this->siteFinder->getSiteByPageId($pageId);
} catch (SiteNotFoundException) { // make sure the language of the row actually exists in the site
$site->getLanguageById($row['sys_language_uid']);
} catch (SiteNotFoundException | \InvalidArgumentException) {
continue; continue;
} }
$router = $site->getRouter(); $router = $site->getRouter();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment