Merge pull request #20897 from Hystepik/develop#5

Fix : contact backtopage on confirm_delete
This commit is contained in:
Laurent Destailleur 2022-05-21 00:46:37 +02:00 committed by GitHub
commit d84bdf3dc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -316,8 +316,9 @@ if (empty($reshook)) {
$result = $object->delete(); // TODO Add $user as first param
if ($result > 0) {
if ($backtopage) {
header("Location: ".$backtopage);
setEventMessages("RecordDeleted", null, 'mesgs');
if ($backurlforlist) {
header("Location: ".$backurlforlist);
exit;
} else {
header("Location: ".DOL_URL_ROOT.'/contact/list.php');