Bug #8893

Negative numeric values are not correctly converted to FALSE

Added by Bastian Waidelich almost 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Must have
Category:
Core
Target version:
-
Start date:
2010-07-15
Due date:
% Done:

100%

Estimated time:
Has patch:

Description

<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 issues

Related to TYPO3.Fluid - Feature #3595: Convert integer types to boolean for if viewhelperClosedBastian Waidelich2009-06-06

Actions
#1

Updated by Bastian Waidelich almost 12 years ago

  • Subject changed from Negative numeric values are not correctly converted to booleans to Negative numeric values are not correctly converted to FALSE
#2

Updated by Bastian Waidelich almost 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r4864.

Also available in: Atom PDF