fix : bad redirection after create

we have __ID__ on url redirect, so repplace it with the $id value
This commit is contained in:
BENKE Charlene 2022-02-21 16:50:12 +01:00 committed by GitHub
parent 00e6d2786d
commit 5647a04369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,6 +159,8 @@ if (empty($reshook)) {
$categories = GETPOST('categories', 'array');
$object->setCategories($categories);
if (!empty($backtopage)) {
$backtopage = str_replace("__ID__", $id, $backtopage);
header("Location: ".$backtopage);
exit;
} else {