#101411Message that there are references which point to this record is not always displayed when trying to delete a record
Description
Usually, we get an alert, sometime like this:
> Are you sure you want to delete the record ‘textmedia1 [tt_content:54]’? There are 1 reference(s) to this record!
or
> Are you sure you want to delete ‘textmedia with shortcuts to this ce’? (There are 1 reference(s) to this record!)
when trying to delete a record (e.g. [textmedia]) which has references pointing to it (e.g. “Insert Records” [shortcut]”).
But sometimes we get a generic message which does not point out there are references, such as:
> Are you sure you want to delete this record?
It looks like the behaviour improved between v11 => v13 but is not fully resolved.
(language label: labels.referencesToRecord)
Problems / Inconsistencies
in v13
- list module: if using checkboxes to select several records then deleting, we get:
> Delete marked
> Are you sure you want to delete all marked records from the table ‘Page Content’?
> Close Delete
(no hint that there are references)
- (minor): in FormEngine the “Delete record” button does not have an “(!)”, in the other cases it does
in v11 , sames as v13, but also
- in page layout: using inline delete button, we get generic message (not warning about references):
> Delete this record?
> Delete this record?
> Cancel | OK
- some more minor inconsistencies in how the delete button is named etc.
Screenshots
delete_record_with_references_generic_message.png
delete_record_with_references_message_points_out_references.png
v13
v13_delete_record_with_references_in_list_module_bulk_removal_no_mention_of_references.png
Full report
see delete_record_with_references.txt
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 that there are references which point to this record is not always displayed when trying to delete a record Resolves: #101411 Releases: main