Lines 165-178
if ( $category_type eq 'C') {
Link Here
|
165 |
if ( $data->{'ethnicity'} || $data->{'ethnotes'} ) { |
165 |
if ( $data->{'ethnicity'} || $data->{'ethnotes'} ) { |
166 |
$template->param( printethnicityline => 1 ); |
166 |
$template->param( printethnicityline => 1 ); |
167 |
} |
167 |
} |
168 |
if ( $category_type eq 'A' || $category_type eq 'I') { |
168 |
my ( $count, $guarantees ) = GetGuarantees( $data->{'borrowernumber'} ); |
|
|
169 |
if ( $count ) { |
169 |
$template->param( isguarantee => 1 ); |
170 |
$template->param( isguarantee => 1 ); |
170 |
|
171 |
|
171 |
# FIXME |
172 |
# FIXME |
172 |
# It looks like the $i is only being returned to handle walking through |
173 |
# It looks like the $i is only being returned to handle walking through |
173 |
# the array, which is probably better done as a foreach loop. |
174 |
# the array, which is probably better done as a foreach loop. |
174 |
# |
175 |
# |
175 |
my ( $count, $guarantees ) = GetGuarantees( $data->{'borrowernumber'} ); |
|
|
176 |
my @guaranteedata; |
176 |
my @guaranteedata; |
177 |
for ( my $i = 0 ; $i < $count ; $i++ ) { |
177 |
for ( my $i = 0 ; $i < $count ; $i++ ) { |
178 |
push(@guaranteedata, |
178 |
push(@guaranteedata, |
179 |
- |
|
|