Skip to content
Snippets Groups Projects
Commit 7b395e07 authored by Kevin von Spiczak's avatar Kevin von Spiczak
Browse files

Merge branch 'master' into feature_3325-xml-news-feed

parents ccafdaea b91a231a
No related branches found
No related tags found
1 merge request!29Feature 3325 xml news feed
......@@ -163,7 +163,15 @@ class OverviewController extends AbstractController {
$categoryRestrictions = GeneralUtility::intExplode(',', $this->settings['categoryRestrictions'], TRUE);
if (count($categoryRestrictions) > 0) {
foreach ($categories as $key => $category) {
if (!in_array($category->getUid(), $categoryRestrictions, TRUE)) {
$categoryId = $category->getUid();
if ($category->_getProperty('_languageUid') > 0) {
$originalLangCategory = $this->categoryRepository->findOriginalLanguageById($category->getUid());
if ($originalLangCategory) {
$categoryId = $originalLangCategory->getUid();
}
}
if (!in_array($categoryId, $categoryRestrictions, TRUE)) {
unset($categories[$key]);
}
}
......
......@@ -6,7 +6,7 @@
"license": [
"GPL-2.0-or-later"
],
"version": "9.2.0",
"version": "9.2.1",
"support": {
},
"repositories": [
......
......@@ -19,7 +19,7 @@ $EM_CONF['sg_news'] = [
'modify_tables' => '',
'clearCacheOnLoad' => 0,
'lockType' => '',
'version' => '9.2.0',
'version' => '9.2.1',
'constraints' => [
'depends' => [
'typo3' => '9.5.0-10.4.99',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment