Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2015-01-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

Actions #1

Updated by Markus Klein over 9 years ago

Without looking into the code, I'm very certain that this yet another example where "!empty()" was used instead of "!== ''"

Actions #2

Updated by Christian Futterlieb over 9 years ago

You're almos right, t's a "if (trim())" ;-)

Actions #3

Updated by Gerrit Code Review over 9 years 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 http://review.typo3.org/35910

Actions #4

Updated by Gerrit Code Review over 9 years ago

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

Actions #5

Updated by Gerrit Code Review over 9 years ago

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

Actions #6

Updated by Gerrit Code Review over 9 years ago

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

Actions #7

Updated by Gerrit Code Review over 9 years ago

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

Actions #8

Updated by Christian Futterlieb over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF