Lines 55-67
if ( ( $patron_id ne $loggedinuser ) && ( $category_type eq 'S' ) ) {
Link Here
|
55 |
|
55 |
|
56 |
push( @errors, 'NOMATCH' ) if ( ( $newpassword && $newpassword2 ) && ( $newpassword ne $newpassword2 ) ); |
56 |
push( @errors, 'NOMATCH' ) if ( ( $newpassword && $newpassword2 ) && ( $newpassword ne $newpassword2 ) ); |
57 |
|
57 |
|
58 |
if ( $op eq 'cud-update' && $newpassword and not @errors ) { |
58 |
if ( $op eq 'cud-update' && defined($newpassword) and not @errors ) { |
59 |
|
59 |
|
60 |
try { |
60 |
try { |
61 |
$patron->set_password({ password => $newpassword }); |
61 |
if ( $newpassword ne '' ) { |
|
|
62 |
$patron->set_password({ password => $newpassword }); |
63 |
$template->param( newpassword => $newpassword ); |
64 |
} |
62 |
$patron->userid($new_user_id)->store |
65 |
$patron->userid($new_user_id)->store |
63 |
if $new_user_id and $new_user_id ne $patron->userid; |
66 |
if $new_user_id and $new_user_id ne $patron->userid; |
64 |
$template->param( newpassword => $newpassword ); |
|
|
65 |
if ( $destination eq 'circ' ) { |
67 |
if ( $destination eq 'circ' ) { |
66 |
print $input->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=" . $patron->cardnumber); |
68 |
print $input->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=" . $patron->cardnumber); |
67 |
} |
69 |
} |
68 |
- |
|
|