View | Details | Raw Unified | Return to bug 16073
Collapse All | Expand All

(-)a/circ/circulation.pl (-7 / +8 lines)
Lines 583-595 my $view = $batch Link Here
583
    ?'batch_checkout_view'
583
    ?'batch_checkout_view'
584
    : 'circview';
584
    : 'circview';
585
585
586
my $patron = Koha::Patrons->find( $borrower->{borrowernumber} );
587
my @relatives;
586
my @relatives;
588
if ( my $guarantor = $patron->guarantor ) {
587
if ( $borrowernumber ) {
589
    push @relatives, $guarantor->borrowernumber;
588
    my $patron = Koha::Patrons->find( $borrower->{borrowernumber} );
590
    push @relatives, $_->borrowernumber for $patron->siblings;
589
    if ( my $guarantor = $patron->guarantor ) {
591
} else {
590
        push @relatives, $guarantor->borrowernumber;
592
    push @relatives, $_->borrowernumber for $patron->guarantees;
591
        push @relatives, $_->borrowernumber for $patron->siblings;
592
    } else {
593
        push @relatives, $_->borrowernumber for $patron->guarantees;
594
    }
593
}
595
}
594
my $relatives_issues_count =
596
my $relatives_issues_count =
595
  Koha::Database->new()->schema()->resultset('Issue')
597
  Koha::Database->new()->schema()->resultset('Issue')
596
- 

Return to bug 16073