Fix return link
This commit is contained in:
parent
0b46fcb4f8
commit
3bfd7644a4
@ -86,7 +86,11 @@ if (empty($reshook))
|
|||||||
$res = $object->delete($user);
|
$res = $object->delete($user);
|
||||||
if ($res > 0)
|
if ($res > 0)
|
||||||
{
|
{
|
||||||
header("Location: index.php");
|
if ($object->type == 'bank-transfer') {
|
||||||
|
header("Location: ".DOL_URL_ROOT.'/compta/paymentbybanktransfer/index.php');
|
||||||
|
} else {
|
||||||
|
header("Location: ".DOL_URL_ROOT.'/compta/prelevement/index.php');
|
||||||
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user