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 #1

Updated by Xavier Perseguers almost 13 years ago

  • Assignee deleted (Steffen Kamper)
  • Target version deleted (-1)
Actions #2

Updated by Riccardo De Contardi over 11 years ago

but... shouldn't the correct syntax be:

[globalVar = TSFE:id = 1, TSFE:id = 5, TSFE:id = 6, TSFE:id = 8]

(works with 4.5.20)
or even

[globalVar = TSFE:id = 1|5|6|8]

(works with 6.1.0)
?
Actions #3

Updated by Chris topher over 11 years ago

  • Status changed from Accepted to Closed

Riccardo De Contardi wrote:

but... shouldn't the correct syntax be:
[...]

You are right. According to the docs the way Steffen tried is not supported. However, what he wanted to get, can be done: Comparison against multiple values is working.

Actions

Also available in: Atom PDF