Bug #17001

config.linkVars check doesn't allow negative ranges

Added by Oliver Hader almost 13 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-02-17
Due date:
% Done:

0%

TYPO3 Version:
4.1
PHP Version:
5.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The newly introduced linkVars check in TYPO3 4.1 doesn't allow negative ranges.

Example:
config.linkVars = my_variable(1-5) is valid
config.linkVars = my_variable(-1-5) doesn't work
config.linkVars = my_variable(-1--3) doesn't work and looks very ugly

I suggest to use ".." as delimiter, e.g.
config.linVars = my_variable(-1..-3)

Possibly it is allowed in TYPO3 4.2 to use config.linkVars = tx_myext_pi1[var](1..-3), but we should change the delimiter from "" to ".." now.
(issue imported from #M5009)

0005009.patch View (1.16 KB) Administrator Admin, 2007-02-17 11:08

History

#1 Updated by Michael Stucki almost 13 years ago

I get the feeling of inconsistency here. I agree that -5--1 looks ugly, but if you insert spaces between, it is not so bad anymore:

config.linkVars = test(-1 - -3)

Personally I would favour this over adding a new separator. What do you think?

#2 Updated by Oliver Hader almost 13 years ago

I can live with reusing the "-" separator. But the code getting the lower and upper bound has to be changed anyway (currently "$range = explode('-',$needle);")

#3 Updated by Alexander Opitz over 6 years ago

  • Category deleted (Communication)
  • Status changed from New to Needs Feedback
  • Target version deleted (0)

As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?

#4 Updated by Alexander Opitz over 6 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Also available in: Atom PDF