X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=members%2Fmaninvoice.pl;h=1f4209367778ab5f8d407df39ff436c91379df58;hb=30dfb7d0a3376e412fbcb58c0080ff288fc1563b;hp=9e8d4297b810ba95ccdd0203a2b460719da844b0;hpb=6be9d2b27dd47c859eb6ab0cfd873b2059206986;p=koha_gimpoz diff --git a/members/maninvoice.pl b/members/maninvoice.pl index 9e8d4297b8..1f42093677 100755 --- a/members/maninvoice.pl +++ b/members/maninvoice.pl @@ -32,6 +32,7 @@ use C4::Members; use C4::Accounts; use C4::Items; use C4::Branch; +use C4::Members::Attributes qw(GetBorrowerAttributes); my $input=new CGI; @@ -106,6 +107,13 @@ if ($add){ my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'}); $template->param( picture => 1 ) if $picture; +if (C4::Context->preference('ExtendedPatronAttributes')) { + my $attributes = GetBorrowerAttributes($borrowernumber); + $template->param( + ExtendedPatronAttributes => 1, + extendedattributes => $attributes + ); +} $template->param( borrowernumber => $borrowernumber, firstname => $data->{'firstname'},