Lines 63-70
elsif ( $op eq "delete_record" ) {
Link Here
|
63 |
my $rows = eval { |
63 |
my $rows = eval { |
64 |
Koha::Patrons->search({ 'me.borrowernumber' => $borrowernumber })->anonymise_issue_history; |
64 |
Koha::Patrons->search({ 'me.borrowernumber' => $borrowernumber })->anonymise_issue_history; |
65 |
}; |
65 |
}; |
66 |
$rows = $@ ? 0 : int($rows); |
66 |
$template->param( |
67 |
$template->param( 'deleted' => $rows ); |
67 |
( |
|
|
68 |
$@ ? ( history_not_deleted => 1 ) |
69 |
: $rows ? ( deleted => int($rows) ) |
70 |
: ( nothing_to_delete => 1 ) |
71 |
) |
72 |
); |
68 |
} |
73 |
} |
69 |
|
74 |
|
70 |
# get borrower privacy .... |
75 |
# get borrower privacy .... |
71 |
- |
|
|