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

(-)a/Koha/Old/Patron.pm (-1 / +1 lines)
Lines 81-87 sub restore_deleted_borrower { Link Here
81
81
82
    $schema->txn_do(
82
    $schema->txn_do(
83
        sub {
83
        sub {
84
            # Retrive all the data about this patron from deleteborrowers table
84
            # Retrieve all the data about this patron from deleteborrowers table
85
            my $patron_data = $self->unblessed;
85
            my $patron_data = $self->unblessed;
86
86
87
            # some fields must be cleared
87
            # some fields must be cleared
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/restore_deleted_borrowers.tt (-3 / +3 lines)
Lines 43-50 Link Here
43
            <main>
43
            <main>
44
                [% IF view == "search" %]
44
                [% IF view == "search" %]
45
                    <h1>Restore deleted patrons</h1>
45
                    <h1>Restore deleted patrons</h1>
46
                    <div class="dialog alert bg-info-subtle">
46
                    <div class="alert alert-info">
47
                        <h3><i class="fa fa-exclamation-triangle"></i> Important: Limited restoration</h3>
47
                        <h2><i class="fa fa-exclamation-triangle"></i> Important: Limited restoration</h2>
48
                        <p><strong>This tool ONLY restores the borrowers table and not related entries in other tables.</strong></p>
48
                        <p><strong>This tool ONLY restores the borrowers table and not related entries in other tables.</strong></p>
49
                        <p><strong>The following will NOT be restored because it is permanently deleted:</strong></p>
49
                        <p><strong>The following will NOT be restored because it is permanently deleted:</strong></p>
50
50
Lines 316-322 Link Here
316
                    return false;
316
                    return false;
317
                }
317
                }
318
318
319
                var message = __("Are you sure you want to restore %s patron(s)?").format(checked);
319
                var message = _("Are you sure you want to restore %s patron(s)?").format(checked);
320
320
321
                if (!confirm(message)) {
321
                if (!confirm(message)) {
322
                    e.preventDefault();
322
                    e.preventDefault();
(-)a/tools/restore_deleted_borrowers.pl (-2 / +1 lines)
Lines 43-49 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
43
    }
43
    }
44
);
44
);
45
45
46
#check if the user can view patrons from any branch, or just thier own
46
#check if the user can view patrons from any branch, or just their own
47
my $logged_in_patron = Koha::Patrons->find($loggedinuser);
47
my $logged_in_patron = Koha::Patrons->find($loggedinuser);
48
my $can_view_all_libraries =
48
my $can_view_all_libraries =
49
    haspermission( $logged_in_patron->userid, { borrowers => 'view_borrower_infos_from_any_libraries' } );
49
    haspermission( $logged_in_patron->userid, { borrowers => 'view_borrower_infos_from_any_libraries' } );
50
- 

Return to bug 34069