X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=members%2Fpay.pl;h=bd25aceee4f0456a5236347d3dbf186206960446;hb=85c9138b35199b222d9ec2f84be6b94b4a51d794;hp=8b403691bdc5ad0f6096e51e16fa3af21e8dcdaa;hpb=898c269150d32d21b6794db8b971128138aef2e9;p=koha.git diff --git a/members/pay.pl b/members/pay.pl index 8b403691bd..bd25aceee4 100755 --- a/members/pay.pl +++ b/members/pay.pl @@ -26,6 +26,8 @@ =cut use strict; +use warnings; + use C4::Context; use C4::Auth; use C4::Output; @@ -56,7 +58,7 @@ if ( $borrowernumber eq '' ) { } # get borrower details -my $data = GetMember( $borrowernumber,'borrowernumber' ); +my $data = GetMember( borrowernumber => $borrowernumber ); my $user = $input->remote_user; # get account details @@ -82,7 +84,7 @@ for ( my $i = 0 ; $i < @names ; $i++ ) { $check = 2; } } -my $total = $input->param('total'); +my $total = $input->param('total') || ''; if ( $check == 0 ) { if ( $total ne '' ) { recordpayment( $borrowernumber, $total ); @@ -155,6 +157,7 @@ $template->param( picture => 1 ) if $picture; address2 => $data->{'address2'}, city => $data->{'city'}, zipcode => $data->{'zipcode'}, + country => $data->{'country'}, phone => $data->{'phone'}, email => $data->{'email'}, branchcode => $data->{'branchcode'},