mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix go back to page
This commit is contained in:
parent
5080199752
commit
20b3f9e2d0
|
|
@ -690,10 +690,12 @@ if (empty($reshook)) {
|
|||
$object->setCategories($categories);
|
||||
|
||||
if (!empty($backtopage)) {
|
||||
$backtopage = preg_replace('/__ID__/', $object->id, $backtopage); // New method to autoselect project after a New on another form object creation
|
||||
if (preg_match('/\?/', $backtopage)) {
|
||||
$backtopage .= '&socid='.$object->id; // Old method
|
||||
$backtopage = preg_replace('/__ID__/', $object->id, $backtopage); // New method to autoselect parent roject after a New on another form object creation
|
||||
$backtopage = preg_replace('/--IDFORBACKTOPAGE--/', $object->id, $backtopage); // New method to autoselect parent after a New on another form object creation
|
||||
if (preg_match('/\?/', $backtopage)) { // Old method
|
||||
$backtopage .= '&socid='.$object->id;
|
||||
}
|
||||
|
||||
header("Location: ".$backtopage);
|
||||
exit;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user