Negative numeric values are not correctly converted to FALSE
|Priority:||Must have||Due date:|
|Assignee:||Bastian Waidelich||% Done:||
|Has patch:||FLOW3 version affected:|
<f:if condition="-1">this should not be rendered</f:if>
actually renders the content, cause ViewHelperNode::convertToBoolean() does not correclty determine the type as /numeric/.
Solution: move the is_numeric() check above the is_string() check.
|related to TYPO3.Fluid - Feature #3595: Convert integer types to boolean for if viewhelper||Closed||2009-06-06|
[!!!][+TASK] Fluid (ViewHelpers): The value argument is required again in form.checkbox and form.radio ViewHelpers. This is a breaking change, as the value argument has not been mandatory for a while. But it probably won't break existing templates as omitting the value makes no sense at all. Relates to #8852
[+FEATURE] Fluid (Core): implemented overrideArgument() method in AbstractViewHelper to be able to override previously registered arguments in subclasses. This resolves #8852
[+BUGFIX] Fluid (Core): Negative numeric values are properly converted to FALSE when used in boolean ViewHelper arguments. This resolves #8893
Updated by Bastian Waidelich almost 3 years ago
- Subject changed from Negative numeric values are not correctly converted to booleans to Negative numeric values are not correctly converted to FALSE