Issue Bug Closed

#107334sys_file_reference pid 0 when adding media on page creation

Rudy Gnodde 08/26/25, 13:50 updated 12/02/25, 13:58

Description

*Description*
If you link a file in the media field when creating a page, the resulting sys_file_reference record gets pid 0. This means non-admin users are unable to remove it.

*How to reproduce*
- Log in to a TYPO3 13 backend
- Go to the “Page” module
- Right click on an existing page
- Click on “New subpage“
- Input a title
- Go to the “Resources” tab and select a file for the “Media” field
- Save the page

*Expected result*
- pid of the sys_file_reference record is the uid of the new page
- Non-admin user is able to remove the sys_file_reference

*Actual result*
- pid of the sys_file_reference record is 0
- Non-admin user is not able to remove the sys_file_reference

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.