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 <[email protected]>
---
 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);
                                }
                        }
                }
-- 
2.6.0

Reply via email to