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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (+4 lines)
Lines 49-54 Link Here
49
                                <h3>Unable to delete patrons from other libraries with current settings</h3>
49
                                <h3>Unable to delete patrons from other libraries with current settings</h3>
50
                                <p>Insufficient privileges.</p>
50
                                <p>Insufficient privileges.</p>
51
                            [% END %]
51
                            [% END %]
52
                            [% IF ( error == 'CANT_DELETE_ANONYMOUS_PATRON' ) %]
53
                                <h3>Unable to delete patron that is set as AnonymousPatron</h3>
54
                                <p>This patron cannot be deleted while set as AnonymousPatron in the system preferences.</p>
55
                            [% END %]
52
                            [% IF ( error == 'CANT_DELETE' ) %]
56
                            [% IF ( error == 'CANT_DELETE' ) %]
53
                                <h3>Unable to delete patron</h3>
57
                                <h3>Unable to delete patron</h3>
54
                                <p>Insufficient privileges.</p>
58
                                <p>Insufficient privileges.</p>
(-)a/members/deletemem.pl (-1 / +7 lines)
Lines 83-88 if (C4::Context->preference("IndependentBranches")) { Link Here
83
    }
83
    }
84
}
84
}
85
85
86
if ( my $anonymous_patron = C4::Context->preference("AnonymousPatron") ) {
87
    if ( $patron->id eq $anonymous_patron ) {
88
        print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$member&error=CANT_DELETE_ANONYMOUS_PATRON");
89
        exit 0;    # Exit without error
90
    }
91
}
92
86
my $op = $input->param('op') || 'delete_confirm';
93
my $op = $input->param('op') || 'delete_confirm';
87
my $dbh = C4::Context->dbh;
94
my $dbh = C4::Context->dbh;
88
my $is_guarantor = $patron->guarantee_relationships->count;
95
my $is_guarantor = $patron->guarantee_relationships->count;
89
- 

Return to bug 14708