X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=members%2Fmaninvoice.pl;h=f1c572c1d7472c3adc4786775b2321f013165e9c;hb=7847f868fe35707f5225ff384af8cfd8559c4961;hp=9a040b6cc9b98b32b5d8fdd3f101027b8badc3a8;hpb=a118102d4e2d7cf6bc1157a560c52fd6deb6f7a7;p=koha_gimpoz diff --git a/members/maninvoice.pl b/members/maninvoice.pl index 9a040b6cc9..f1c572c1d7 100755 --- a/members/maninvoice.pl +++ b/members/maninvoice.pl @@ -106,8 +106,14 @@ if ($add){ $template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' ); my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'}); $template->param( picture => 1 ) if $picture; - my $attributes = GetBorrowerAttributes($borrowernumber); +if (C4::Context->preference('ExtendedPatronAttributes')) { + my $attributes = GetBorrowerAttributes($borrowernumber); + $template->param( + ExtendedPatronAttributes => 1, + extendedattributes => $attributes + ); +} $template->param( borrowernumber => $borrowernumber, firstname => $data->{'firstname'}, @@ -127,7 +133,7 @@ if ($add){ branchcode => $data->{'branchcode'}, branchname => GetBranchName($data->{'branchcode'}), is_child => ($data->{'category_type'} eq 'C'), - extendedattributes => $attributes, + activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''), ); output_html_with_http_headers $input, $cookie, $template->output; }