Skip to content
Snippets Groups Projects
Commit 8bb6e5dc authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[BUGFIX] Properly replace record title placeholder in confirmation

The record title in the delete confirmation
modal of FilesControlContainer is now properly
replaced.

Resolves: #100815
Releases: main, 12.4
Change-Id: I6a66242a9d2e5fdea28191d3d98da036c3af77aa
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78947


Tested-by: default avatarDaniel Haupt <mail@danielhaupt.de>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: default avatarDaniel Haupt <mail@danielhaupt.de>
parent d1ebdd67
Branches
Tags
No related merge requests found
......@@ -303,7 +303,7 @@ class FilesControlContainer extends HTMLElement {
e.stopImmediatePropagation();
const title = TYPO3.lang['label.confirm.delete_record.title'] || 'Delete this record?';
const content = TYPO3.lang['label.confirm.delete_record.content'] || 'Are you sure you want to delete this record?';
const content = (TYPO3.lang['label.confirm.delete_record.content'] || 'Are you sure you want to delete the record \'%s\'?').replace('%s', this.dataset.recordInfo);
Modal.confirm(title, content, Severity.warning, [
{
text: TYPO3.lang['buttons.confirm.delete_record.no'] || 'Cancel',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment