#111441Context menu: "Delete" opens modal with "No content provided" if delete confirmation is disabled via options.alertPopups
Description
Problem
If the delete confirmation is disabled for a backend user (User TSconfig options.alertPopups without the bit for delete, e.g. options.alertPopups = 248), choosing “Delete” in the context menu (page tree, record list) still opens a confirmation modal. The modal shows the title “Information” and the text “No content provided, please check your Modal configuration.” instead of deleting without confirmation.
Steps to reproduce
- Set User TSconfig of a backend user to
options.alertPopups = 248(all bits except the delete confirmation,JsConfirmation::DELETE = 4) - Log in, open the page tree and open the context menu of a page
- Click “Delete”
Cause
RecordProvider::getDeleteAdditionalAttributes() only adds data-title and data-message if BackendUserAuthentication::jsConfirmation(JsConfirmation::DELETE) is true. ContextMenuActions.deleteRecord() calls Modal.confirm() unconditionally with the then undefined title and message, so the modal falls back to its default content. pasteInto/@pasteAfter@ already handle this case (if (!dataset.title) { performPaste(); return; }), delete does not. Present since the context menu refactoring in v8 (7b0c27c8e72, 2017).
Reviews 1
History 04
-
Gerrit Code Review pushed patch set 1 for main to change 97626 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-13T18:58:31+00:00" > 11/13/26, 18:58 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97626 <span data-processor="relativetime" data-value="2026-11-15T16:56:16+00:00" > 11/15/26, 16:56 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 97626 <span data-processor="relativetime" data-value="2026-11-15T20:49:31+00:00" > 11/15/26, 20:49 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 97626 <span data-processor="relativetime" data-value="2026-11-20T19:48:05+00:00" > 11/20/26, 19:48 </span>