This commit is contained in:
Pek5892 2023-01-31 17:48:17 +01:00
parent e0a2a9bd5a
commit 1077ad31d7
1 changed files with 7 additions and 3 deletions

View File

@ -41,9 +41,13 @@ switch (filter('op')) {
}
// Redirect alla categoria se si sta modificando una sottocategoria
$database->commitTransaction();
redirect(base_path().'/editor.php?id_module='.$id_module.'&id_record='.($id_original ?: $id_record));
exit();
if($id_original != null) {
$database->commitTransaction();
redirect(base_path().'/editor.php?id_module='.$id_module.'&id_record='.($id_original ?: $id_record));
exit();
}
break;
case 'add':