View | Details | Raw Unified | Return to bug 20363
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt (-1 / +3 lines)
Lines 27-33 Link Here
27
27
28
                    [% IF deleted %]
28
                    [% IF deleted %]
29
                        <div class="alert alert-success">Your reading history has been deleted.</div>
29
                        <div class="alert alert-success">Your reading history has been deleted.</div>
30
                    [% ELSE %]
30
                    [% ELSIF err_history_not_deleted %]
31
                        <div class="alert">The deletion of your reading history failed, because there is a problem with the configuration of this feature. Please help to fix the system by informing your library of this error</div>
32
                    [% ELSIF nothing_to_delete %]
31
                        <div class="alert">No reading history to delete</div>
33
                        <div class="alert">No reading history to delete</div>
32
                    [% END %]
34
                    [% END %]
33
35
(-)a/opac/opac-privacy.pl (-3 / +7 lines)
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
- 

Return to bug 20363