Actions
Bug #102742
openTypoScript constants not usable in value modification addToList()
Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2024-01-03
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
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.
Environment: TYPO3 12.4.9 and PHP 8.2.4
Files
Actions