Issue Bug Closed

#103960Referencing an "empty" COA content object does not render anything

Helmut Hummel 05/31/24, 13:37 updated 08/11/26, 08:46

Description

When a COA is referenced, that does not have any properties in the referenced config,
then adding properties in the place where it referenced, does not render anything

Given the following TypoScript:

page = PAGE
page.10 =< lib.foo
page.10.20 = TEXT
page.10.20.value = bar

lib.foo = COA

I expect to see a rendered “bar“
Actually nothing is rendered.

The following TypoScript is working:

page = PAGE
page.10 =< lib.foo
page.10.20 = TEXT
page.10.20.value = bar

lib.foo = COA
lib.foo.doesNot = matter

Reviews 2

History 713

  1. Christian Kuhn commented <span data-processor="relativetime" data-value="2024-06-05T21:27:42+00:00" > 06/05/24, 21:27 </span>

    Did this behavior change between v11 and v12?

  2. Helmut Hummel commented <span data-processor="relativetime" data-value="2024-06-06T21:44:37+00:00" > 06/06/24, 21:44 </span>

    Christian Kuhn wrote in #note-1:
    > Did this behavior change between v11 and v12?

    Yes. In 11 “bar” is rendered as expected

  3. Alexander Künzl commented <span data-processor="relativetime" data-value="2026-03-23T16:56:20+00:00" > 03/23/26, 16:56 </span>

    This still occurs in TYPO3 14, and it is not limited to empty COAs.

    An empty (or emptied) TEXT object causes similar behaviour:

    page = PAGE
    page.10 =< lib.foo
    page.10.value = bar
    lib.foo = TEXT
    lib.foo.1 = 1

    => Output is “bar”

    page = PAGE
    page.10 =< lib.foo
    page.10.value = bar
    lib.foo = TEXT

    => Output is empty

    This behaviour is controlled in TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::mergeTSRef, from line 4427

  4. Alexander Künzl commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-04-21T15:50:08+00:00" > 04/21/26, 15:50 </span>

    Applied in changeset commit:6077b85063f401a4eeac629555389f0e2f634985.