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

(-)a/members/mancredit.pl (-6 / +3 lines)
Lines 55-64 my $logged_in_user = Koha::Patrons->find($loggedinuser) or die "Not logged in"; Link Here
55
my $borrowernumber = $input->param('borrowernumber');
55
my $borrowernumber = $input->param('borrowernumber');
56
my $patron         = Koha::Patrons->find($borrowernumber);
56
my $patron         = Koha::Patrons->find($borrowernumber);
57
57
58
unless ( $patron ) {
58
output_and_exit_if_error( $input, $cookie, $template,
59
    print $input->redirect("/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber");
59
    { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } );
60
    exit;
60
61
}
62
my $add = $input->param('add');
61
my $add = $input->param('add');
63
62
64
if ($add){
63
if ($add){
Lines 94-100 if ($add){ Link Here
94
    print $input->redirect("/cgi-bin/koha/members/boraccount.pl?borrowernumber=$borrowernumber");
93
    print $input->redirect("/cgi-bin/koha/members/boraccount.pl?borrowernumber=$borrowernumber");
95
94
96
} else {
95
} else {
97
    output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } );
98
96
99
    if (C4::Context->preference('ExtendedPatronAttributes')) {
97
    if (C4::Context->preference('ExtendedPatronAttributes')) {
100
        my $attributes = GetBorrowerAttributes($borrowernumber);
98
        my $attributes = GetBorrowerAttributes($borrowernumber);
101
- 

Return to bug 21702