Review main Merged

96883[BUGFIX] Check new records with their default language

Oli Bartsch CR +2 V +2 Normal +120 −1 updated 10/22/26, 16:06

Commit message

FormEngine no longer submits a language field that offers only one
language (#109366). For a new record, DataHandler then adds the first
language the editor may use from the site of the page. On a page
outside any site, e.g. a storage folder, there is no site, the field
stays unset until the defaults are applied, and the access check runs
before that. Non-admin editors got "The languageField ... was not
found in testing record", e.g. for new file references.

The access check now gets the language the record will be stored
with: the configured default (TCAdefaults or TCA) or, without one, the
database default 0. The stored record does not change, and editors
without access to that language are still rejected.

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • core-ci +1 CI

Issues 2

Files 3

Review log 45

  1. Oli Bartsch uploaded patch set 1 10/19/26, 19:19

  2. core-ci voted on patch set 1 V +1 10/19/26, 19:32 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111702

  3. Benni Mack voted on patch set 1 CR +1 V +1 10/19/26, 20:33

  4. Benni Mack voted on patch set 1 CR +2 V +2 10/22/26, 16:06

  5. Benni Mack merged patch set 2 10/22/26, 16:06