Merge pull request #21292 from atm-lena/develop_FIX_nobackoptionupdate_actionaddupdatedelete
Add $noback for action update
This commit is contained in:
commit
3489d9facd
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user