Link to image in RTE does not prevent deleting this image in the File List
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?
#3 Updated by Patrick Broens about 1 year ago
Yes, the reference is present is sys_refindex as softref "typolink_tag".To reproduce:
- Make a CE "Text and Media"
- In the RTE make a link to a file which does not have any references (upload one)
- Go to the file list
- Delete the file
The file is deleted without error.