Bug #22853
closedRegression in globalVar condition
0%
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
Updated by Xavier Perseguers almost 13 years ago
- Assignee deleted (
Steffen Kamper) - Target version deleted (
-1)
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)
?
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.