X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=acqui%2Fbasket.pl;h=f203af2517ca175c4180c3dd54b20bb261e20d17;hb=7e1a341d4e901e660d80cef710faed66452c1749;hp=ace6b63a06477c5b70a4aa643d49be2255aa10c5;hpb=a8c5497b8da7de25b7c4787ee5540e4e1b48704d;p=koha.git diff --git a/acqui/basket.pl b/acqui/basket.pl index ace6b63a06..f203af2517 100755 --- a/acqui/basket.pl +++ b/acqui/basket.pl @@ -65,7 +65,7 @@ the supplier this script have to display the basket. =cut my $query = new CGI; -my $basketno = $query->param('basketno'); +our $basketno = $query->param('basketno'); my $booksellerid = $query->param('booksellerid'); my ( $template, $loggedinuser, $cookie, $userflags ) = get_template_and_user( @@ -206,13 +206,14 @@ if ( $op eq 'delete_confirm' ) { } } #if the basket is closed,and the user has the permission to edit basketgroups, display a list of basketgroups - my $basketgroups; + my ($basketgroup, $basketgroups); my $member = GetMember(borrowernumber => $loggedinuser); if ($basket->{closedate} && haspermission({ acquisition => 'group_manage'} )) { $basketgroups = GetBasketgroups($basket->{booksellerid}); for my $bg ( @{$basketgroups} ) { if ($basket->{basketgroupid} && $basket->{basketgroupid} == $bg->{id}){ $bg->{default} = 1; + $basketgroup = $bg; } } my %emptygroup = ( id => undef, @@ -339,6 +340,7 @@ if ( $op eq 'delete_confirm' ) { currency => $cur->{'currency'}, listincgst => $bookseller->{listincgst}, basketgroups => $basketgroups, + basketgroup => $basketgroup, grouped => $basket->{basketgroupid}, unclosable => @orders ? 0 : 1, has_budgets => $has_budgets,