mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix arg type to preg_replace() with cast
This commit is contained in:
parent
dac3eba397
commit
90b41360dc
|
|
@ -703,8 +703,8 @@ if (empty($reshook)) {
|
|||
$object->setCategories($categories);
|
||||
|
||||
if (!empty($backtopage)) {
|
||||
$backtopage = preg_replace('/__ID__/', $object->id, $backtopage); // New method to autoselect parent project 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
|
||||
$backtopage = preg_replace('/__ID__/', (string) $object->id, $backtopage); // New method to autoselect parent project after a New on another form object creation
|
||||
$backtopage = preg_replace('/--IDFORBACKTOPAGE--/', (string) $object->id, $backtopage); // New method to autoselect parent after a New on another form object creation
|
||||
if (preg_match('/\?/', $backtopage)) {
|
||||
$backtopage .= '&productid='.$object->id; // Old method
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user