Issue Bug Under Review

#111441Context menu: "Delete" opens modal with "No content provided" if delete confirmation is disabled via options.alertPopups

Georg Ringer 11/13/26, 18:54 updated 11/20/26, 19:48

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

  1. Set User TSconfig of a backend user to options.alertPopups = 248 (all bits except the delete confirmation, JsConfirmation::DELETE = 4)
  2. Log in, open the page tree and open the context menu of a page
  3. 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