Lines 96-112
if ( $patron->is_debarred ) {
Link Here
|
96 |
|
96 |
|
97 |
$template->param( flagged => 1 ) if $patron->account_locked; |
97 |
$template->param( flagged => 1 ) if $patron->account_locked; |
98 |
|
98 |
|
99 |
my @relatives; |
|
|
100 |
my $guarantor_relationships = $patron->guarantor_relationships; |
99 |
my $guarantor_relationships = $patron->guarantor_relationships; |
101 |
my @guarantees = $patron->guarantee_relationships->guarantees->as_list; |
100 |
my @guarantees = $patron->guarantee_relationships->guarantees->as_list; |
102 |
my @guarantors = $guarantor_relationships->guarantors->as_list; |
101 |
my @guarantors = $guarantor_relationships->guarantors->as_list; |
103 |
if (@guarantors) { |
102 |
my @relatives = map { $_->id } (@guarantors, $patron->siblings->as_list, @guarantees); |
104 |
push( @relatives, $_->id ) for @guarantors; |
|
|
105 |
push( @relatives, $_->id ) for $patron->siblings->as_list; |
106 |
} |
107 |
else { |
108 |
push( @relatives, $_->id ) for @guarantees; |
109 |
} |
110 |
$template->param( |
103 |
$template->param( |
111 |
guarantor_relationships => $guarantor_relationships, |
104 |
guarantor_relationships => $guarantor_relationships, |
112 |
guarantees => \@guarantees, |
105 |
guarantees => \@guarantees, |
113 |
- |
|
|