Merge pull request #20897 from Hystepik/develop#5
Fix : contact backtopage on confirm_delete
This commit is contained in:
commit
d84bdf3dc2
@ -316,8 +316,9 @@ if (empty($reshook)) {
|
|||||||
|
|
||||||
$result = $object->delete(); // TODO Add $user as first param
|
$result = $object->delete(); // TODO Add $user as first param
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
if ($backtopage) {
|
setEventMessages("RecordDeleted", null, 'mesgs');
|
||||||
header("Location: ".$backtopage);
|
if ($backurlforlist) {
|
||||||
|
header("Location: ".$backurlforlist);
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
header("Location: ".DOL_URL_ROOT.'/contact/list.php');
|
header("Location: ".DOL_URL_ROOT.'/contact/list.php');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user