Bug #64192
closed
Typoscript condition cannot check (GP) arrays with a key that is '0'
Added by Christian Futterlieb over 9 years ago.
Updated over 5 years ago.
Description
Assuming this URL:
http://typo3.local/index.php?id=1&myoption[0]=1
Following condition does not match:
[globalVar = GP:myoption|0 = 1]
This bug appears at least in 6.2 LTS and 7. I'll submit a patch to gerrit in a moment.
Without looking into the code, I'm very certain that this yet another example where "!empty()" was used instead of "!== ''"
You're almos right, t's a "if (trim())" ;-)
- 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 http://review.typo3.org/35910
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35910
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35910
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35910
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35950
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF