#82007Inconsistent variable value for f:variable viewhelper for integer 0
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…
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.