Merge pull request #19136 from nicolas-eoxia/fix_creation_after_redirection_contact

fix: redirection after creation contact #19111
This commit is contained in:
Laurent Destailleur 2021-10-23 11:23:40 +02:00 committed by GitHub
commit 840436f404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -296,7 +296,7 @@ if (empty($reshook)) {
if (empty($error) && $id > 0) {
$db->commit();
if (!empty($backtopage)) {
$url = $backtopage;
$url = str_replace('__ID__', $id, $backtopage);
} else {
$url = 'card.php?id='.$id;
}