[aur-dev] [PATCH] Redirect to requests page after accepting deletions

archlinux at cryptocrack.de archlinux at cryptocrack.de
Sat Dec 13 15:06:45 UTC 2014


From: Lukas Fleischer <archlinux at cryptocrack.de>

Fixes FS#43100.

Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 web/html/pkgbase.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/web/html/pkgbase.php b/web/html/pkgbase.php
index 691639c..bdce516 100644
--- a/web/html/pkgbase.php
+++ b/web/html/pkgbase.php
@@ -106,7 +106,8 @@ if (check_token()) {
 	}
 
 	if ($ret) {
-		if (current_action("do_CloseRequest")) {
+		if (current_action("do_CloseRequest") ||
+		    (current_action("do_Delete") && $_POST['via'])) {
 			/* Redirect back to package request page on success. */
 			header('Location: ' . get_pkgreq_route());
 			exit();
-- 
2.1.3


More information about the aur-dev mailing list