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 { ...@@ -173,9 +173,12 @@ class JobRepository extends Repository {
$query = $this->createQuery(); $query = $this->createQuery();
$storagePageIds = $query->getQuerySettings()->getStoragePageIds(); $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 = $query->getQuerySettings();
$querySettings->setLanguageOverlayMode(FALSE); if ($querySettings->getLanguageOverlayMode() === 'hideNonTranslated') {
$querySettings->setLanguageOverlayMode(FALSE);
}
$query->setQuerySettings($querySettings); $query->setQuerySettings($querySettings);
if (empty($storagePageIds)) { if (empty($storagePageIds)) {
......
<?php <?php
defined('TYPO3') or die(); defined('TYPO3') or die();
/*************************************************************** /***************************************************************
* Copyright notice * Copyright notice
* *
...@@ -39,7 +40,7 @@ call_user_func( ...@@ -39,7 +40,7 @@ call_user_func(
\SGalinski\SgJobs\Controller\JoblistController::class => 'index' \SGalinski\SgJobs\Controller\JoblistController::class => 'index'
], ],
[ [
// Uncacheable actions // Non-Cache actions
\SGalinski\SgJobs\Controller\JoblistController::class => 'index' \SGalinski\SgJobs\Controller\JoblistController::class => 'index'
] ]
); );
...@@ -51,7 +52,7 @@ call_user_func( ...@@ -51,7 +52,7 @@ call_user_func(
\SGalinski\SgJobs\Controller\JoblistController::class => 'applyForm, apply, empty' \SGalinski\SgJobs\Controller\JoblistController::class => 'applyForm, apply, empty'
], ],
[ [
// Uncacheable actions // Non-Cache actions
\SGalinski\SgJobs\Controller\JoblistController::class => 'applyForm, apply, empty' \SGalinski\SgJobs\Controller\JoblistController::class => 'applyForm, apply, empty'
] ]
); );
...@@ -63,7 +64,7 @@ call_user_func( ...@@ -63,7 +64,7 @@ call_user_func(
\SGalinski\SgJobs\Controller\JobTeaserController::class => 'index' \SGalinski\SgJobs\Controller\JobTeaserController::class => 'index'
], ],
[ [
// Uncacheable actions // Non-Cache actions
\SGalinski\SgJobs\Controller\JobTeaserController::class => '' \SGalinski\SgJobs\Controller\JobTeaserController::class => ''
] ]
); );
...@@ -90,7 +91,6 @@ call_user_func( ...@@ -90,7 +91,6 @@ call_user_func(
// register mail templates // register mail templates
$GLOBALS['sg_mail']['sg_jobs']['ApplicationMail'] = 'EXT:sg_jobs/Configuration/SgMail/ApplicationMail.php'; $GLOBALS['sg_mail']['sg_jobs']['ApplicationMail'] = 'EXT:sg_jobs/Configuration/SgMail/ApplicationMail.php';
// Register the upgrade wizard // Register the upgrade wizard
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\SGalinski\SgJobs\Updates\DepartmentUpdateWizard::IDENTIFIER] $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\SGalinski\SgJobs\Updates\DepartmentUpdateWizard::IDENTIFIER]
= \SGalinski\SgJobs\Updates\DepartmentUpdateWizard::class; = \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