Merge pull request #20138 from defrance/patch-178
fix : bad redirection after create
This commit is contained in:
commit
2c5d88d7a6
@ -159,6 +159,8 @@ if (empty($reshook)) {
|
|||||||
$categories = GETPOST('categories', 'array');
|
$categories = GETPOST('categories', 'array');
|
||||||
$object->setCategories($categories);
|
$object->setCategories($categories);
|
||||||
if (!empty($backtopage)) {
|
if (!empty($backtopage)) {
|
||||||
|
|
||||||
|
$backtopage = str_replace("__ID__", $id, $backtopage);
|
||||||
header("Location: ".$backtopage);
|
header("Location: ".$backtopage);
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user