Review main Merged

77313[BUGFIX] Resolve nested TypoScript reference operator

Christian Kuhn CR +2 V +2 Easy +42 −1 updated 01/10/23, 15:17

Commit message

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.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 3

Files 2