Bug #77866

Link to image in RTE does not prevent deleting this image in the File List

Added by Patrick Broens about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2016-09-06
Due date:
% Done:

0%

TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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?


Related issues

Related to TYPO3 Core - Bug #82864: File links in rte_ckeditor don't get counted as a reference Closed 2017-10-26

History

#1 Updated by Patrick Broens about 1 year ago

The RTE I'm mentioning is the one in CE "Text & Media".

#2 Updated by Frans Saris about 1 year ago

The sys_ref record linking file to CE field is present?

#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.

#4 Updated by Riccardo De Contardi 28 days ago

  • Related to Bug #82864: File links in rte_ckeditor don't get counted as a reference added

Also available in: Atom PDF