Project

General

Profile

Actions

Bug #102742

closed

TypoScript constants not usable in value modification addToList()

Added by Karsten Nowak (undkonsorten) 11 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2024-01-03
Due date:
% Done:

100%

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


Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Feature #97816: New TypoScript parserClosed2022-06-27

Actions
Related to TYPO3 Core - Task #103944: Update less class state in TypoScript tokenizersClosed2024-05-28

Actions
Related to TYPO3 Core - Feature #103671: Provide null coalesce operator for TypoScript constantsClosedBenjamin Franzke2024-04-19

Actions
Related to TYPO3 Core - Task #103982: Require array in setFlatConstants()Closed2024-06-05

Actions
Actions

Also available in: Atom PDF