From 4fe513d838373575cf173fafbd0bc6e7ce30090a Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 3 Oct 2015 11:56:01 +0200 Subject: 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 --- web/html/pkgbase.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/html/pkgbase.php b/web/html/pkgbase.php index a241c74..b98dc64 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); } } } -- cgit v1.2.3-70-g09d2