Bug #90908

Zeros are not treated as empty values in `.ifEmpty`

Added by Sascha Egerer over 1 year ago. Updated 2 months ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2020-03-31
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
Remote Sprint

Description

In TYPO3 9.5.15 the functionality of stdWrap ifEmpty has been changed. 137b381561cfd51edddf9b398427dbce35086dba
Before this change a value of `0` was evaluated to false but now it is true.

IMO this change should be reverted as it is a breaking change.


Related issues

Related to TYPO3 Core - Bug #90318: stdWrap.ifEmpty not called anymore on potentially empty stringsClosed2020-02-04

Actions
Related to TYPO3 Core - Bug #86969: stdWrap ifEmpty/ifNull/ifBlank are evaluated even if content is thereClosed2018-11-21

Actions
#1

Updated by Sascha Egerer over 1 year ago

  • Related to Bug #90318: stdWrap.ifEmpty not called anymore on potentially empty strings added
#2

Updated by Sascha Egerer over 1 year ago

  • Related to Bug #86969: stdWrap ifEmpty/ifNull/ifBlank are evaluated even if content is there added
#3

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64029

#4

Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64029

#5

Updated by Gerrit Code Review about 1 year ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64029

#6

Updated by Marc Bastian Heinrichs 2 months ago

  • Subject changed from Functionality of `.ifEmpty` has been changed to Zeros are not treated as empty values in `.ifEmpty`

Run into this in version 10.

It does not behave like still documented
https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Functions/Stdwrap.html#ifempty

Also available in: Atom PDF