projects
/
koha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 9783 - can hit submit twice when adding patrons
[koha.git]
/
members
/
maninvoice.pl
diff --git
a/members/maninvoice.pl
b/members/maninvoice.pl
index
9e8d429
..
f1c572c
100755
(executable)
--- 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::Accounts;
use C4::Items;
use C4::Branch;
+use C4::Members::Attributes qw(GetBorrowerAttributes);
my $input=new CGI;
my $input=new CGI;
@@
-106,6
+107,13
@@
if ($add){
my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'});
$template->param( picture => 1 ) if $picture;
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'},
$template->param(
borrowernumber => $borrowernumber,
firstname => $data->{'firstname'},
@@
-125,6
+133,7
@@
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'),
+ activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
);
output_html_with_http_headers $input, $cookie, $template->output;
}
);
output_html_with_http_headers $input, $cookie, $template->output;
}