From 4b584251810ed73fe19af6b82d28633bc231b452 Mon Sep 17 00:00:00 2001 From: lmarcouiller Date: Thu, 19 May 2022 10:54:35 +0200 Subject: [PATCH] Fix : contact backtopage on confirm_delete --- htdocs/contact/card.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/contact/card.php b/htdocs/contact/card.php index fae36d323e3..1cef1901917 100644 --- a/htdocs/contact/card.php +++ b/htdocs/contact/card.php @@ -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');