From f1677e56ecf1ea5f0ce2a408f1f11e931639e1d5 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 5 Sep 2017 21:16:05 +0000 Subject: [PATCH] Bug 19257: Prevent warn when reopening a basket To test: 1) Go to Acquisitions, find a vendor and a basket (create if you don't have either) 2) Close the basket 3) View the basket and reopen it 4) Notice the warn 5) Apply the patch and repeat steps 1-3 6) Notice the warn no longer shows and the basket is reopened as expected Sponsored-by: Catalyst IT Signed-off-by: Mark Tompsett Signed-off-by: Jonathan Druart Signed-off-by: Jonathan Druart (cherry picked from commit 6ed1513e5fe91772c1720963006bf8f04452416d) Signed-off-by: Fridolin Somers --- acqui/basket.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/basket.pl b/acqui/basket.pl index 55aca4cf0d..7b91eeedbb 100755 --- a/acqui/basket.pl +++ b/acqui/basket.pl @@ -220,7 +220,7 @@ if ( $op eq 'delete_confirm' ) { ); } } elsif ($op eq 'reopen') { - ReopenBasket($query->param('basketno')); + ReopenBasket(scalar $query->param('basketno')); print $query->redirect('/cgi-bin/koha/acqui/basket.pl?basketno='.$basket->{'basketno'}) } elsif ( $op eq 'ediorder' ) { -- 2.39.5