Actions
Bug #82007
closedInconsistent variable value for f:variable viewhelper for integer 0
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2017-07-31
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
If I do this in a template (Fluid 8.4.7):
<f:variable name="zero1" value="0" />
{f:variable(name: 'zero2', value: 0)}
<f:debug>{zero1}</f:debug>
<f:debug>{zero2}</f:debug>
When I first call this, the output is:
0 (integer)
0 (double)
After simply reloading the browser, the output becomes:
NULL
NULL
The problem goes away, if I use the f:cache.disable VH to output the variables, so it must obviously be a cache-related issue.
If I set a variable to 0 in the controller and pass it to the view, it works consistently.
(BTW, the problem is the same when using the variable VH of VHS.)
A propos consistency: it's not really the issue here, but it seems a bit odd that the tag and inline notation don't produce the exact same result here (integer vs. double); I don't know if that's by design or by mistake...
Actions