Merge pull request #18943 from Hystepik/develop#1

FIX: creation of project backtopage
This commit is contained in:
Laurent Destailleur 2021-10-11 15:31:43 +02:00 committed by GitHub
commit b51c904d2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,7 +224,7 @@ if (empty($reshook)) {
$db->commit();
if (!empty($backtopage)) {
$backtopage = preg_replace('/--IDFORBACKTOPAGE--/', $object->id, $backtopage); // New method to autoselect project after a New on another form object creation
$backtopage = preg_replace('/--IDFORBACKTOPAGE--|__ID__/', $object->id, $backtopage); // New method to autoselect project after a New on another form object creation
$backtopage = $backtopage.'&projectid='.$object->id; // Old method
header("Location: ".$backtopage);
exit;