mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Do not redirect to details page after deletion
When deleting a package base from the package base deletion form, do not try to redirect to the package base details page afterwards. Instead, jump to the package overview. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
90e96e3728
commit
4fe513d838
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,7 @@ if (check_token()) {
|
|||
if (!isset($_POST['merge_Into']) || empty($_POST['merge_Into'])) {
|
||||
list($ret, $output) = pkgbase_delete($ids, NULL, $via);
|
||||
unset($_GET['ID']);
|
||||
unset($base_id);
|
||||
}
|
||||
else {
|
||||
$merge_base_id = pkgbase_from_name($_POST['merge_Into']);
|
||||
|
@ -89,6 +90,7 @@ if (check_token()) {
|
|||
} else {
|
||||
list($ret, $output) = pkgbase_delete($ids, $merge_base_id, $via);
|
||||
unset($_GET['ID']);
|
||||
unset($base_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue