diff --git a/htdocs/product/card.php b/htdocs/product/card.php index 0aa2fb54aba..b6820bddddd 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -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 }