Issue Bug Rejected

#84434TypoScript ifBlank does not work with strlen like expected

Stefan Froemken 03/17/18, 14:51 updated 04/10/18, 15:01

Description

Hello Core-Team,

in documentation you told us that ifBlank works with strlen to check, if a value is empty. OK, following example:

page.123 = TEXT
page.123.value = blue, green,  , red,,white
page.123.preIfEmptyListNum = 2
page.123.ifBlank = pink

The value 2 between green and red are 2 spaces. So strlen will result in 2 which is not empty. But in Frontend you will see the value pink. So, something went wrong here.
In source code I saw that you are working with trim instead of strlen since TYPO3 7.

I will create a patch to correct that again.

Stefan

Reviews 4