#82931File reference on new page gets pid 0 instead of the pid of the record
Description
Steps to reproduce:
- Go to ‘list’ mode
- Create a new page (so it has uid NEW_*)
- Attach a resource like an image
- Save the record
*Expected behavior:*
The sys_file_reference entry has a pid of the newly created page
*Observed behavior:*
The sys_file_reference entry has a pid of 0
*Result:*
A regular ‘mortal’ user can never remove the reference from the page object because it has no access to remove stuff from pid 0.
I only observed this behavior in page records. tt_content for example, seems to work fine