Review main Merged

92370[TASK] Avoid unnecessary implode/explode logic in BackendUtility::getRecord

Benni Mack CR +2 V +2 Normal +82 −24 updated 01/19/26, 12:09

Commit message

The following BackendUtility methods now accept both string and array
for the $fields parameter, making them more flexible and avoiding
unnecessary array-to-string conversions in calling code:

- BackendUtility::getRecord()
- BackendUtility::getRecordWSOL()
- BackendUtiliy::getLiveVersionOfRecord()
- BackendUtiliy::getWorkspaceVersionOfRecord()

Some places in Core now do not need to convert the
field array to string anymore.

Review

  • Code review CR +2 Done
    • Benni Mack +2
    • Garvin Hicking +1
    • Josua Vogel +1
    • Simon Schaufelberger +1
  • Verified V +2 Done
    • Benni Mack +2
    • Garvin Hicking +1
    • Josua Vogel +1
    • Simon Schaufelberger +1
    • core-ci +1 CI

Issues 1

Files 6

Review log 67

  1. Benni Mack uploaded patch set 1 01/18/26, 09:22

  2. core-ci voted on patch set 1 V +1 01/18/26, 09:30 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/93714

  3. Simon Schaufelberger voted on patch set 1 CR +1 V +1 01/19/26, 00:01

  4. Josua Vogel voted on patch set 1 CR +1 V +1 01/19/26, 07:40

  5. Garvin Hicking voted on patch set 1 CR +1 V +1 01/19/26, 12:06

  6. Benni Mack voted on patch set 1 CR +2 V +2 01/19/26, 12:08

  7. Benni Mack merged patch set 2 01/19/26, 12:09