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

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


Hi Masi,

Martin Kutschker schrieb:
> Steffen Kamper schrieb:
>> 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]
> 
> Means: TSFE:id is equal to one of the items in the list.
>
correct

>> [globalVar = TSFE:id > 1,2,3,4,5,6,7,8,9]
> 
> Means what? TSFE:id is greater than one of items in the list? But that is pointless as you could
> simply compare only to the largest item in the list (which the site admin could do himself).
> 
yes, i admit this makes less sense

> 
>> [globalVar = TSFE:id != 1,2,3,4,5,6,7,8,9]
> 
> Means (?): TSFE:id is not equal to *all* of the items in the list, right? This really worked in
> earlier versions? Amazing.
> 

correct, is the opposite of first one, and it makes sense. And - this 
never worked with older versions, only the first one (=) worked before.

It's something consequent: if we have [var] [operater] [commalist] it 
should work with all operators, even if <> doesn't make big sense. But 
maybe the list is dynamic generated ...

vg Steffen


More information about the TYPO3-team-core mailing list