summaryrefslogtreecommitdiffstats
path: root/web/html/pkgbase.php
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-10-03 11:56:01 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-10-03 11:57:44 +0200
commit4fe513d838373575cf173fafbd0bc6e7ce30090a (patch)
treeb620207d5deee71db01d4238b84158db1aec5952 /web/html/pkgbase.php
parent90e96e3728b727f2318fb119a2ca165e81b11608 (diff)
downloadaur-4fe513d838373575cf173fafbd0bc6e7ce30090a.tar.gz
aur-4fe513d838373575cf173fafbd0bc6e7ce30090a.tar.xz
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>
Diffstat (limited to 'web/html/pkgbase.php')
-rw-r--r--web/html/pkgbase.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/html/pkgbase.php b/web/html/pkgbase.php
index a241c749..b98dc648 100644
--- a/web/html/pkgbase.php
+++ b/web/html/pkgbase.php
@@ -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);
}
}
}