From 35dcda3ef2c23e4e46da1e161f18e13efc47d412 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Thu, 13 Feb 2020 21:44:23 +0000 Subject: [PATCH] Bug 9989: Stay on basket page after closing it Instead of redirecting to the list of vendor's baskets. To test: 1) Go to Acquisitions. Ensure you have a budget, fund and vendor defined. 2) Create a basket. Add an item to it. 3) Close the basket. Do not attach to a basketgroup. 4) Notice you are redirected to the list of vendor's baskets. 5) Apply the patch and go to the basket's page. Reopen the basket. 6) Close the basket. Do not attach to a basketgroup. 7) Confirm you remain on the closed basket's page. Sponsored-by: Catalyst IT --- acqui/basket.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/basket.pl b/acqui/basket.pl index d248f11..85eb17f 100755 --- a/acqui/basket.pl +++ b/acqui/basket.pl @@ -213,7 +213,7 @@ if ( $op eq 'delete_confirm' ) { basketgroupid => $basketgroupid } ); print $query->redirect('/cgi-bin/koha/acqui/basketgroup.pl?booksellerid='.$booksellerid.'&closed=1'); } else { - print $query->redirect('/cgi-bin/koha/acqui/booksellers.pl?booksellerid=' . $booksellerid); + print $query->redirect('/cgi-bin/koha/acqui/basket.pl?basketno=' . $basketno); } exit; } else { -- 2.1.4