Bug #49827
closedRootline in TSFE->tmpl is broken when translation is used and is_siteroot is set in between
0%
Description
This bug seems to be related to #43668 - but IMHO is a bit different.
There is a problem with the rootline when translation is used and is_siteroot is not set on the root page but somewhere in between the rootline.
- root [1] -- starting [2] is_siteroot=1 --- submenue [3]
In the default language i get the rootline "starting <- submenue" but when translation is used, i get the rootline "root <- starting <- submenue". So the menu rendering does not work correct.
When calling TypoScriptFrontendController->updateRootLinesWithTranslations(), $this->tmpl->rootLine has been loaded with the the rootline up to "is_siteroot=1". So the rootline is "starting <- submenue."
But then $this->tmpl->rootLine is overwritten by $this->sys_page->getRootLine() an sets the rootline to "root <- starting <- submenue".
Afaik the check against "is_siteroot" is done in
TYPO3::CMS::Core::TypoScript::TemplateService->processTemplate
Line 686 // If the template record is a Rootlevel record, set the flag and clear the template rootLine (so it starts over from this point)
[[http://api.typo3.org/typo3cms/current/html/_template_service_8php_source.html#l00597]]
The solution of Sven Wappler [[http://forge.typo3.org/issues/43668#note-15]] works for us, but i had not tested it with mountpoints f.e. and do not know yet, if it has some sideeffects too.