Fix reindirizzamento

This commit is contained in:
Pek5892 2024-04-09 17:08:35 +02:00
parent 2700b0c0f8
commit 025dc5dcd3
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ echo '
</div>
</div>';
redirectOperation($id_module, isset($id_parent) ? $id_parent : $id_record);
redirectOperation($id_module, !empty($id_parent) ? $id_parent : $id_record);
// Interfaccia per la modifica dell'ordine e della visibilità delle colonne (Amministratore)
if ($user->is_admin && string_contains($module['option'], '|select|')) {

View File

@ -297,7 +297,7 @@ function slashes($string)
*/
function isAjaxRequest()
{
return Whoops\Util\Misc::isAjaxRequest() && filter('ajax') !== null;
return Whoops\Util\Misc::isAjaxRequest() && filter('ajax') !== null && filter('op') !== '';
}
/**