X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=members%2Fmancredit.pl;h=3c664c2ce6fd6dc6bf10a11dd4a69c96922534d9;hb=0e9edb11026fab413540fe78ea88206cff433fcc;hp=801fcc2868f9799b417c6cebc2a6be8457ca711b;hpb=6b9fff61fb7e96902c8d6afac906285bc1f4bb80;p=srvgit diff --git a/members/mancredit.pl b/members/mancredit.pl index 801fcc2868..3c664c2ce6 100755 --- a/members/mancredit.pl +++ b/members/mancredit.pl @@ -78,7 +78,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; + +if (C4::Context->preference('ExtendedPatronAttributes')) { my $attributes = GetBorrowerAttributes($borrowernumber); + $template->param( + ExtendedPatronAttributes => 1, + extendedattributes => $attributes + ); +} $template->param( borrowernumber => $borrowernumber, @@ -99,7 +106,6 @@ if ($add){ branchcode => $data->{'branchcode'}, branchname => GetBranchName($data->{'branchcode'}), is_child => ($data->{'category_type'} eq 'C'), - extendedattributes => $attributes, ); output_html_with_http_headers $input, $cookie, $template->output; }