|
Lines 169-178
if ( my $guarantor = $patron->guarantor ) {
Link Here
|
| 169 |
$template->param( guarantor => $guarantor ); |
169 |
$template->param( guarantor => $guarantor ); |
| 170 |
push @relatives, $guarantor->borrowernumber; |
170 |
push @relatives, $guarantor->borrowernumber; |
| 171 |
push @relatives, $_->borrowernumber for $patron->siblings; |
171 |
push @relatives, $_->borrowernumber for $patron->siblings; |
|
|
172 |
} elsif ( $patron->contactname || $patron->contactfirstname ) { |
| 173 |
$template->param( guarantor => { |
| 174 |
firstname => $patron->contactfirstname, |
| 175 |
surname => $patron->contactname, |
| 176 |
}); |
| 172 |
} else { |
177 |
} else { |
| 173 |
my @guarantees = $patron->guarantees; |
178 |
my @guarantees = $patron->guarantees; |
| 174 |
$template->param( guarantees => \@guarantees ); |
179 |
$template->param( guarantees => \@guarantees ); |
| 175 |
push @relatives, $_->borrowernumber for @guarantees; |
|
|
| 176 |
} |
180 |
} |
| 177 |
|
181 |
|
| 178 |
my $relatives_issues_count = |
182 |
my $relatives_issues_count = |
| 179 |
- |
|
|