X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=members%2Fmoremember.pl;h=b766f2f9f7143e1fb7ae47f34db4a7ed691ed609;hb=26965cf1dfe4a8a34a97280c0aba72a8b59d7e4a;hp=9dcfa3ad219820adc9d18f4bab214ea4be396462;hpb=8307a1f79d8143e05c734cc750bb420c1ff41e1c;p=koha_gimpoz diff --git a/members/moremember.pl b/members/moremember.pl index 9dcfa3ad21..b766f2f9f7 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -159,7 +159,7 @@ my $catcode; if ( $category_type eq 'C') { if ($data->{guarantorid} ) { my $data2 = GetMember( 'borrowernumber' => $data->{'guarantorid'} ); - foreach (qw(address city B_address B_city phone mobile zipcode country B_country)) { + foreach (qw(address address2 city state B_address B_address2 B_city B_state phone mobile zipcode B_zipcode country B_country)) { $data->{$_} = $data2->{$_}; } } @@ -265,7 +265,7 @@ sub build_issue_data { # Getting borrower details my $memberdetails = GetMemberDetails($issue->[$i]{'borrowernumber'}); $issue->[$i]{'borrowername'} = $memberdetails->{'firstname'} . " " . $memberdetails->{'surname'}; - + $issue->[$i]{'cardnumber'} = $memberdetails->{'cardnumber'}; my $datedue = $issue->[$i]{'date_due'}; my $issuedate = $issue->[$i]{'issuedate'}; $issue->[$i]{'date_due'} = C4::Dates->new($issue->[$i]{'date_due'}, 'iso')->output('syspref'); @@ -427,7 +427,7 @@ $template->param( picture => 1 ) if $picture; my $branch=C4::Context->userenv->{'branch'}; -$template->param($data); +$template->param(%$data); if (C4::Context->preference('ExtendedPatronAttributes')) { $template->param(ExtendedPatronAttributes => 1);