Skip to content
Snippets Groups Projects
Commit eb0b4e10 authored by Sybille Peters's avatar Sybille Peters Committed by Stefan Bürk
Browse files

[BUGFIX] Fix exception with PHP 8.1 in ItemProcessingService

The pageId is already passed to the functon
ItemProcessingService::getProcessingItems(). This is now used instead
of retrieving the uid / pid from the row array.

The previous behaviour could result in an exception with PHP 8.1
since the uid in the row might not be initialized if a new page
is created. If a field with itemProcFunc existed for a field
in the pages table.

The page id which was passed to the function already handled
the case of empty uid by passing the uid of the parent page.

Resolves: #99295
Releases: main, 11.5
Change-Id: I9c72189c6f80e0a45cb9abfcc80541b091c126b8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77277


Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
parent ecc1ffd0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment