X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=acqui%2Fbasket.pl;h=f203af2517ca175c4180c3dd54b20bb261e20d17;hb=f69ebeef6731c87ec22cea1885bf7e5a9ee91a26;hp=ace6b63a06477c5b70a4aa643d49be2255aa10c5;hpb=7886297f05ece48185b2f046ae025a57643ee65c;p=koha_fer 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,