Merge pull request #20138 from defrance/patch-178

fix : bad redirection after create
This commit is contained in:
Laurent Destailleur 2022-02-22 01:17:22 +01:00 committed by GitHub
commit 2c5d88d7a6
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 {