[TYPO3-core] RFC: #14680: Regression in globalVar condition

Steffen Kamper info at sk-typo3.de
Thu Jun 10 01:28:39 CEST 2010


Hi,

this is a SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=14663

Branches: Trunk, 4_3

In 4.2 this condition worked:
[globalVar = TSFE:id = 1,2,3,4,5,6,7,8,9]

This doesn't work in 4.3. Reason is, that testNumber now always expect 
operator for first parameter, example:
testNumber('=2', '2') returns true
So this works only for the first value in commalist.

But this doesn't work in both versions:
[globalVar = TSFE:id > 1,2,3,4,5,6,7,8,9]
[globalVar = TSFE:id != 1,2,3,4,5,6,7,8,9]

Solution:
Use operator for all values. As globalString use the same splitting, use 
same syntax there too.

Attached is also a testcase.

vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 14680.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100610/edf53628/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 14680_test.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100610/edf53628/attachment.asc>


More information about the TYPO3-team-core mailing list