Merge pull request #18718 from vincentjdc/product-replace-id
FIX https://github.com/Dolibarr/dolibarr/issues/18717
This commit is contained in:
commit
71b5299c9f
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user