Bug 10636 - patronimage should have borrowernumber as PK, not cardnumber
[koha.git] / members / readingrec.pl
index d41e3f9..0f0c3df 100755 (executable)
@@ -103,7 +103,7 @@ if (! $limit){
 }
 
 
-my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'});
+my ($picture, $dberror) = GetPatronImage($data->{'borrowernumber'});
 $template->param( picture => 1 ) if $picture;
 
 if (C4::Context->preference('ExtendedPatronAttributes')) {