projects
/
koha_gimpoz
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 1633 follow-up: Fix jenkins tests
[koha_gimpoz]
/
members
/
maninvoice.pl
diff --git
a/members/maninvoice.pl
b/members/maninvoice.pl
index
9a040b6
..
1f42093
100755
(executable)
--- 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;
$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'},
$template->param(
borrowernumber => $borrowernumber,
firstname => $data->{'firstname'},
@@
-127,7
+133,6
@@
if ($add){
branchcode => $data->{'branchcode'},
branchname => GetBranchName($data->{'branchcode'}),
is_child => ($data->{'category_type'} eq 'C'),
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;
}
);
output_html_with_http_headers $input, $cookie, $template->output;
}