The script members/guarantor_search.pl made the following call:
my ($od,$issue,$fines)=GetMemberIssuesAndFines($results->[$i]{'borrowerid'});
Not only does this call always fail because borrowerid is not a valid
key, but the results are never even used in the template!
Test Plan:
1) Apply this patch
2) Verify the gurantor search works as before,
No changes in behavior should be noted
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
for (my $i=0; $i < $count; $i++){
#find out stats
- my ($od,$issue,$fines)=GetMemberIssuesAndFines($results->[$i]{'borrowerid'});
my $guarantorinfo=uc($results->[$i]{'surname'})." , ".ucfirst($results->[$i]{'firstname'});
my %row = (
background => $background,
dateofbirth =>format_date($results->[$i]{'dateofbirth'}),
#fi op
- odissue => "$od/$issue",
- fines => $fines,
borrowernotes => $results->[$i]{'borrowernotes'});
if ( $background ) { $background = 0; } else {$background = 1; }
push(@resultsdata, \%row);