#67945Condition ViewHelper not evaluated correctly
Description
Simple Setup:
This is my fluid template:
<p:frontPage>
<f:then>
<div class="header-slideshow">
<f:cObject typoscriptObjectPath="lib.renderContent" data="{uid:55}"/>
</div>
</f:then>
<f:else>
FOO
</f:else>
</p:frontPage>
The viewhelper is very simple and makes basically this:
return ((integer) $GLOBALS['TSFE']->page['is_siteroot'] === 1) ? $this->renderThenChild() : $this->renderElseChild();
On first page load the viewhelper is called 2 times (?) I can see that because i put some debug outputs there.
On the secod load the viewhelper returns the Else child. But if i debug the condition
var_dump((integer) $GLOBALS['TSFE']->page['is_siteroot'] === 1);
It allways says TRUE
Anyway
“FOO” is printed from the second run onwards.
HEAD is @ 89139e8
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.