Merge pull request #21292 from atm-lena/develop_FIX_nobackoptionupdate_actionaddupdatedelete

Add $noback for action update
This commit is contained in:
Laurent Destailleur 2022-06-17 14:08:20 +02:00 committed by GitHub
commit 3489d9facd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,7 +266,7 @@ if ($action == 'update' && !empty($permissiontoadd)) {
$action = 'view';
$urltogo = $backtopage ? str_replace('__ID__', $result, $backtopage) : $backurlforlist;
$urltogo = preg_replace('/--IDFORBACKTOPAGE--/', $object->id, $urltogo); // New method to autoselect project after a New on another form object creation
if ($urltogo) {
if ($urltogo && !$noback) {
header("Location: " . $urltogo);
exit;
}