Bug #103873
closedPHP Warning: Undefined Array Key "avatar" when saving profile of a non-admin user with disabled avatar field
100%
Description
Issue:¶
Saving the profile of a non-admin user with disabled avatar field leads to warnings in PHP 8+ on TYPO3 12 and TYPO3 13.1
Steps to reproduce the issue:¶
- create an empty TYPO3 System (PHP Version 8.2)
- create a rootpage
- create an editor user group and user
- disable the avatar field of this user with User-TSconfig (setup.fields.avatar.disabled=1)
- switch to this user
- edit the profile and save it or just save it, which causes the PHP warning:
PHP Warning: Undefined array key "avatar" in /var/www/html/typo3/sysext/setup/Classes/Controller/SetupModuleController.php line 299 (main) PHP Warning: Undefined array key "avatar" in /var/www/html/typo3/sysext/setup/Classes/Controller/SetupModuleController.php line 301 (12.4)
Updated by Gerrit Code Review 6 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84339
Updated by Gerrit Code Review 6 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84339
Updated by Gerrit Code Review 6 months ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84339
Updated by Gerrit Code Review 6 months ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84339
Updated by Gerrit Code Review 6 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84505
Updated by Ziad Abdul Hai 6 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 011e456370456e96a19828977cbdaa4d6011f42f.