N°6307 - Fix unappropriate confirm message when updating log on object edition

Proper fix as 345a8371 was temporary
This commit is contained in:
Molkobain
2023-05-31 16:25:58 +02:00
parent eec9b027ac
commit f41879f0b1
3 changed files with 58 additions and 12 deletions

View File

@@ -2949,8 +2949,7 @@ JS
}
// Prepare blocker protection to avoid loosing data
$sBlockerId = uniqid($sClass.':'.$iKey.':', true);
$sConfirmationMessage = addslashes(Dict::S('UI:NavigateAwayConfirmationMessage'));
$sBlockerId = $sClass.':'.$iKey; // Important: This must have the synthax format as in js/layouts/activity-panel/activity-panel.js
$sJSToken = json_encode($sOwnershipToken);
$oPage->add_ready_script(<<<JS
// Try to release concurrent lock when leaving the page