Skip to content
Snippets Groups Projects
Commit bab41fb4 authored by Christian Kuhn's avatar Christian Kuhn Committed by Stefan Bürk
Browse files

[BUGFIX] Resolve nested TypoScript reference operator

Incoming TS:

lib.foo = TEXT
lib.foo.value = foo
lib.bar =< lib.foo
lib.bar.value = bar
page = PAGE
page.10 = CASE
page.10.key.field = cache_timeout
page.10.default =< lib.foo
page.10.60 =< lib.bar

page.10.60 is a reference to lib.bar which sets the
sub property 'value' to 'bar'. lib.bar itself is a
reference to lib.foo which sets 'TEXT'. When the
cache timeout of a page is set to '60', string 'bar'
should be output.

This stopped working in main since the reference
resolving is not recursive anymore since #99060.

The patch fixes this and adds a unit test to verify.

Resolves: #99504
Related: #97816
Related: #99060
Releases: main
Change-Id: I560807db326559077658b36a61a137fec6cdbcb5
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77313


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarAchim Fritz <af@achimfritz.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarAchim Fritz <af@achimfritz.de>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
parent ca9a3071
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment