Merge pull request #18718 from vincentjdc/product-replace-id

FIX https://github.com/Dolibarr/dolibarr/issues/18717
This commit is contained in:
Laurent Destailleur 2021-09-20 11:07:21 +02:00 committed by GitHub
commit 71b5299c9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -481,7 +481,7 @@ if (empty($reshook)) {
$object->setCategories($categories);
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('/__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
}