Project

General

Profile

Actions

Bug #81532

closed

Non-zero value evaluates to FALSE in condition of <f:if> viewhelper

Added by Michael Stopp over 7 years ago. Updated over 7 years ago.

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

Testing for a non-zero value in Fluid 8.7.0 doesn't evaluate as TRUE as it used to in 6.2.0:

<f:if condition="-1">
TEST
</f:if>

This doesn't print TEST. It seems that only positive non-zero values will test TRUE. This is not consistent with earlier implementations and can thus break existing templates.

Actions #1

Updated by Claus Due over 7 years ago

  • Status changed from New to Closed

Please report to https://github.com/TYPO3/Fluid (and check the open issues list first if this is already reported).

Actions

Also available in: Atom PDF