Adding auto-focus to patrons resident search; Highlighting overdues count in patron...
[koha.git] / members / member-password.pl
index 62adb79..4bd4f1f 100755 (executable)
@@ -40,7 +40,7 @@ my $errormsg;
 my ($bor)=GetMember($member);
 if(( $member ne $loggedinuser ) && ($bor->{'category_type'} eq 'S' ) ) {
        $errormsg = 'NOPERMISSION' unless($staffflags->{'superlibrarian'} || $staffflags->{'staffaccess'} );
-       # need superlibrarian for koha.xml fakeuser.
+       # need superlibrarian for koha-conf.xml fakeuser.
 }
 my $newpassword = $input->param('newpassword');
 my $minpw = C4::Context->preference('minPasswordLength');
@@ -79,6 +79,8 @@ if ( $newpassword  && ! $errormsg ) {
        my $borrowercategory = GetBorrowercategory( $bor->{'categorycode'} );
 my $category_type = $borrowercategory->{'category_type'};
 ( $template->param( adultborrower => 1 ) ) if ( $category_type eq 'A' );
+my ($picture, $dberror) = GetPatronImage($bor->{'cardnumber'});
+$template->param( picture => 1 ) if $picture;
        
     $template->param( othernames => $bor->{'othernames'},
            surname     => $bor->{'surname'},