Issue Bug Closed

#82931File reference on new page gets pid 0 instead of the pid of the record

Michiel Roos 11/06/17, 12:59 updated 02/27/20, 12:41

Description

Steps to reproduce:
  1. Go to ‘list’ mode
  2. Create a new page (so it has uid NEW_*)
  3. Attach a resource like an image
  4. 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

Reviews 3