Bug #95856
closedArray to string conversion warning in IconFactory
100%
Description
In the pages
table, field module
is configured in the TCA as 'type' => 'select'
and renderType => 'selectSingle'
.
The value is stored in the database as a simple string, i.e. $row['module'] = 'fe_users'
.
When editing such a page record in the backend, TYPO3\Backend\Form\FormDataProvider\TcaSelectItems->addData()
converts this string to an array like this: $row['module'] = [0 => 'fe_users']
.
On PHP 8, this causes TYPO3\Core\Imaging\IconFactory->mapRecordTypeToIconIdentifier()
to throw aPHP Warning: Array to string conversion in typo3\sysext\core\Classes\Imaging\IconFactory.php line 190
,
as it expects $row['module'] to be a plain string.
Updated by Gerrit Code Review about 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72030
Updated by Robert Kärner about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1dd425dfc05ece2bda20eba1c5583fd24582c471.