Issue Bug Closed

#77866Link to file in RTE does not prevent deleting this file in the File List

Patrick Broens 09/06/16, 16:44 updated 12/23/19, 22:48

Description

Normally when an image (or other file) in the file list has a reference, it cannot be deleted without deleting the reference. It first will ask you if you want to delete it with the amount of references and after clicking “Ok” you will get an error message that the file cannot be deleted:

> File not deleted
> The file cannot be deleted since it is still used at the following places: [record:pages:11], [record:pages:12]

This behaviour is fine.

However, when you make a link to a file in the RTE, and try to delete it in the file list, it will also tell you there is a reference and asking you if you want to continue, but when clicking “Ok”, the file is deleted without the error message.

Is this behaviour intended, or should it work like other references?

Reviews 3