Lines 24-29
use C4::Context;
Link Here
|
24 |
use C4::Circulation; |
24 |
use C4::Circulation; |
25 |
use C4::Members; |
25 |
use C4::Members; |
26 |
use C4::Output; |
26 |
use C4::Output; |
|
|
27 |
use Koha::Borrowers; |
27 |
|
28 |
|
28 |
my $query = new CGI; |
29 |
my $query = new CGI; |
29 |
|
30 |
|
Lines 74-88
elsif ( $op eq "delete_record" ) {
Link Here
|
74 |
} |
75 |
} |
75 |
|
76 |
|
76 |
# get borrower privacy .... |
77 |
# get borrower privacy .... |
77 |
my $borrower = C4::Members::GetMember( borrowernumber => $borrowernumber ); |
78 |
my $borrower = Koha::Borrowers->find( $borrowernumber );; |
78 |
|
79 |
|
79 |
$template->param( |
80 |
$template->param( |
80 |
'Ask_data' => 1, |
81 |
'Ask_data' => 1, |
81 |
'privacy' . $borrower->{'privacy'} => 1, |
82 |
'privacy' . $borrower->privacy() => 1, |
82 |
'privacyview' => 1, |
83 |
'privacyview' => 1, |
83 |
'borrower' => $borrower, |
84 |
'borrower' => $borrower, |
84 |
'surname' => $borrower->{surname}, |
85 |
'surname' => $borrower->surname, |
85 |
'firstname' => $borrower->{firstname}, |
86 |
'firstname' => $borrower->firstname, |
86 |
); |
87 |
); |
87 |
|
88 |
|
88 |
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 }; |
89 |
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 }; |
89 |
- |
|
|