Bug #3412

ViewHelperNode.php -> convertArgumentValue() -- wrong handling of integers and booleans

Added by Susanne Moog over 12 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
Core
Target version:
-
Start date:
2009-05-22
Due date:
% Done:

100%

Estimated time:
Has patch:

Description

If you enter in some fluid if condition a parameter that is a true boolean like TRUE it gets converted to FALSE by the convertArgumentValue(). Same happens if the value is an integer != 0, it's still evaluated to false. Attached patch fixes it for me.


Files

viewNodeHelper_boolEval.patch (477 Bytes) viewNodeHelper_boolEval.patch Susanne Moog, 2009-05-22 08:51

Related issues

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

Actions
#1

Updated by Susanne Moog over 12 years ago

Snippet to reproduce:

<f:if condition={params.next}>
next
</f:if>

with

params->next = TRUE;

#2

Updated by Bastian Waidelich over 12 years ago

  • Status changed from New to Accepted
  • Assignee set to Bastian Waidelich
#3

Updated by Bastian Waidelich over 12 years ago

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

Applied in changeset r2345.

Also available in: Atom PDF