Project

General

Profile

Actions

Bug #22853

closed

Regression in globalVar condition

Added by Steffen Kamper over 14 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-06-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

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.

(issue imported from #M14680)


Files

14680.diff (1.52 KB) 14680.diff Administrator Admin, 2010-06-10 01:26
14680_test.diff (1.73 KB) 14680_test.diff Administrator Admin, 2010-06-10 01:26
Actions

Also available in: Atom PDF