-
Notifications
You must be signed in to change notification settings - Fork 218
Description
I have checked that the bug exists in the dev-development branch
Yes
If you're about to answer "no" here, it is your responsibility to check dev-development before opening a bug report!
I have checked that there are no already open issues or recently closed issues about this bug
Yes
If you're about to answer "no" here, it is your responsibility to first check the open and recently closed issues for potential duplicaates.
Describe the bug
When I copy a flux content with tt_content or other inside the flux content it is not display if the language is other than 0. The bug is also if I create a content without using translate :
I search and find that the problem come here in class FluidTYPO3\Flux\Integration\PreviewView line 258 :
if (isset($language)) { $context = $context->cloneForLanguage($language); }
The language will always be 0 so the contents will not display.
I find with a little help this solution :
if (isset($language)) { $context = $context->cloneForLanguage($language); $configuration = $context->getDrawingConfiguration(); if (method_exists($configuration, 'setSelectedLanguageId')) { $configuration->setSelectedLanguageId($language->getLanguageId()); } }
and it work :
If you want to produce the problem, you just have to create a flux content in another language and add a content inside when go to Page and it will not display.
Additional context
I have the problem in TYPO3 12.4.40 and before but it's working in TYPO3 10 and 11.
I have the last version of Flux and try in development branch