Skip to content
Snippets Groups Projects
Commit 4f1ce6f6 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] Only do the latest language changes for hideNonTranslated modes (strict)

parent d361dd90
No related branches found
No related tags found
No related merge requests found
......@@ -173,9 +173,12 @@ class JobRepository extends Repository {
$query = $this->createQuery();
$storagePageIds = $query->getQuerySettings()->getStoragePageIds();
// we always show all jobs (translated or only created in the specific language)
// we always want to show all jobs if the strict mode is used (translated or
// created in the specific language w/o default)
$querySettings = $query->getQuerySettings();
$querySettings->setLanguageOverlayMode(FALSE);
if ($querySettings->getLanguageOverlayMode() === 'hideNonTranslated') {
$querySettings->setLanguageOverlayMode(FALSE);
}
$query->setQuerySettings($querySettings);
if (empty($storagePageIds)) {
......
<?php
defined('TYPO3') or die();
/***************************************************************
* Copyright notice
*
......@@ -39,7 +40,7 @@ call_user_func(
\SGalinski\SgJobs\Controller\JoblistController::class => 'index'
],
[
// Uncacheable actions
// Non-Cache actions
\SGalinski\SgJobs\Controller\JoblistController::class => 'index'
]
);
......@@ -51,7 +52,7 @@ call_user_func(
\SGalinski\SgJobs\Controller\JoblistController::class => 'applyForm, apply, empty'
],
[
// Uncacheable actions
// Non-Cache actions
\SGalinski\SgJobs\Controller\JoblistController::class => 'applyForm, apply, empty'
]
);
......@@ -63,7 +64,7 @@ call_user_func(
\SGalinski\SgJobs\Controller\JobTeaserController::class => 'index'
],
[
// Uncacheable actions
// Non-Cache actions
\SGalinski\SgJobs\Controller\JobTeaserController::class => ''
]
);
......@@ -90,7 +91,6 @@ call_user_func(
// register mail templates
$GLOBALS['sg_mail']['sg_jobs']['ApplicationMail'] = 'EXT:sg_jobs/Configuration/SgMail/ApplicationMail.php';
// Register the upgrade wizard
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\SGalinski\SgJobs\Updates\DepartmentUpdateWizard::IDENTIFIER]
= \SGalinski\SgJobs\Updates\DepartmentUpdateWizard::class;
......
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