#103083Message to editors when deleting files
Description
Hello,
when an editor tries to delete a referenced file he gets this message:
“Die Datei kann nicht gelöscht werden, weil sie noch an den folgenden Orten benutzt wird [record:tt_content:7947], [record:tt_content:8007]”
Deepl translation:
“The file cannot be deleted because it is still in use at the following locations [record:tt_content:7947], [record:tt_content:8007]”
This is not an easy task for the editor to handle, especially since a normal editor seems not to be allowed to search for tt_content elements by the given uids.
The easiest solution is probably to enhance the error message by linking straight to the referenced elements, so an editor can just one-click edit them in case.
Greetings,
Manuel
Reviews 1
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". The changes above were merged or abandoned: read them before you start. How to create a patch
- Commit message
-
[BUGFIX] Message to editors when deleting files Resolves: #103083 Releases: main
Files 1
History 59
-
Christian Rath-Ulrich commented <span data-processor="relativetime" data-value="2024-02-12T11:42:02+00:00" > 02/12/24, 11:42 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 82903 status
NewUnder Review <span data-processor="relativetime" data-value="2024-02-12T15:42:51+00:00" > 02/12/24, 15:42 </span> -
Gerrit Code Review pushed patch set 2 for main to change 82903 <span data-processor="relativetime" data-value="2024-02-12T16:22:44+00:00" > 02/12/24, 16:22 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 82903 <span data-processor="relativetime" data-value="2024-02-12T17:00:20+00:00" > 02/12/24, 17:00 </span>
-
Riccardo De Contardi changed Tags terminology <span data-processor="relativetime" data-value="2024-09-25T15:49:20+00:00" > 09/25/24, 15:49 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 82903 <span data-processor="relativetime" data-value="2024-10-18T13:22:00+00:00" > 10/18/24, 13:22 </span>
-
Benni Mack changed status
Under ReviewNew <span data-processor="relativetime" data-value="2024-12-18T10:33:20+00:00" > 12/18/24, 10:33 </span> -
Benni Mack changed Sprint Focus On Location Sprint <span data-processor="relativetime" data-value="2026-08-06T16:02:21+00:00" > 08/06/26, 16:02 </span>
-
Soren Malling commented and changed attached delete-text-many-workspaces.png <span data-processor="relativetime" data-value="2026-09-24T09:34:42+00:00" > 09/24/26, 09:34 </span>
Came about this issue. For a user a more helping message indeed. But be aware that some files can live in different workspaces – the editor might not have access to these workspace
delete-text-many-workspaces.png
It’s all happening in func_delete of ExtendedFileUtility
internal reference 2498