#102742TypoScript constants not usable in value modification addToList()
Description
If we use constants in value modifications like addToList() (maybe others too) they are not replaced with the value of the constants. Used constants are not nested constants!
Example:
# TypoScript Constants
test.foo = bar
# TypoScript Setup
page.1 = TEXT
page.1 {
value = Test1
value := addToList({$test.foo})
}
page.2 = TEXT
page.2 {
value = Test2
value := addToList(one,two)
wrap = <br />|
}
Expected output should be
Test1,bar
Test2,one,two
but is
Test1,{$test.foo}
Test2,one,two
In “Active TypoScript” with activated checkbox “Substitute constants in setup” it is also not replaced.
clipboard-202401031121-wvn5c.png
Environment: TYPO3 12.4.9 and PHP 8.2.4
Reviews 9
- 12.4 86985[BUGFIX] Allow using parentheses in TypoScript operator functions
- 13.4 86984[BUGFIX] Allow using parentheses in TypoScript operator functions
- main 84909[BUGFIX] Allow using parentheses in TypoScript operator functions
- 12.4 84507[TASK] Require array in setFlatConstants()
- main 84506[TASK] Require array in setFlatConstants()
- 12.4 84498[BUGFIX] Add constant evaluation in TypoScript functions
- main 82633[BUGFIX] Add constant evaluation in TypoScript functions
- 12.4 84440[TASK] Update less class state in TypoScript tokenizers
- main 84439[TASK] Update less class state in TypoScript tokenizers