fix : bad redirection after create
we have __ID__ on url redirect, so repplace it with the $id value
This commit is contained in:
parent
00e6d2786d
commit
5647a04369
@ -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