Review 12.4 Merged

90412[BUGFIX] Correctly handle TextTableElement delimiter fallback

Christian Weiske CR +2 V +2 Easy +2 −2 updated 08/15/25, 13:23

Commit message

When a table content element has no table_delimiter field,
the first save fails.

A TCA database row's field values are either
- array, when the field is visible in the form
- simple type, when the field is not in the form
  (with its default value)

When saving the element the first time, the table_delimiter default value
is a string "124", causing the `$row['table_delimiter'][0]` to do a
substring operation. This leads to failure.

Upon saving the next time, the default value is an integer and all is
fine.

This patch fixes the problem by checking if the value is really an array
before trying to access the first array element.

Review

  • Code review CR +2 Done
    • Oli Bartsch +2
  • Verified V +2 Done
    • Oli Bartsch +2
    • core-ci +1 CI

Issues 1

Files 1

Review log 34

  1. Christian Weiske commented on patch set 1 08/15/25, 12:54

    Cherry Picked from branch 13.4.
  2. core-ci voted on patch set 1 V +1 08/15/25, 12:59 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/83457

  3. Oli Bartsch voted on patch set 1 CR +2 V +2 08/15/25, 13:23

  4. Oli Bartsch merged patch set 2 08/15/25, 13:23