Actions
Bug #81530
closedCondition evaluation for <f:if> viewhelper fails in inline notation
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2017-06-09
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
In Fluid 8.7.0, checking if a DateTime property of an object is set, throws an exception if used in the inline notation. One should expect identical output for the following two cases:
<f:if condition="{payment.paidDate}">
<f:then>set</f:then>
<f:else>not set</f:else>
</f:if>
{f:if(condition: '{payment.paidDate}', then: 'set', else: 'not set')}
The first version correctly evaluates, if the property is set or not.
The second version results in an uncaught TYPO3 exception:
htmlspecialchars() expects parameter 1 to be string, object given
This used to work in Fluid 6.2.0.
Actions