Actions
Bug #67945
closedCondition ViewHelper not evaluated correctly
Start date:
2015-07-07
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
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
Actions